EKMPowershop: Difference between revisions
| Line 4: | Line 4: | ||
Go to Design -> edit on theme -> Inject Custom Code | Go to Design -> edit on theme -> Inject Custom Code | ||
Click on "Enable Alternative Code Injection" checkbox to show after opening body injection section | Click on "Enable Alternative Code Injection" checkbox to show after opening body injection section | ||
Revision as of 14:42, 22 August 2018
Google Tag Manager
Login URL: https://www.ekmsecure.co.uk/ekmps/youraccount.asp
Go to Design -> edit on theme -> Inject Custom Code
Click on "Enable Alternative Code Injection" checkbox to show after opening body injection section
Extra Tag Manager
IF tag manager with ID "GTM-KF9VMP" exists, it is added to the site by EKMpowershop. Have not found a way to remove it yet: https://productforums.google.com/forum/?hl=fil#!topic/tag-manager/p70cwhiJgus;context-place=topicsearchin/tag-manager/category$3Aworking-with-google-tag-manager Will have to add tag manager on top of this 1.
Conversion Value
Settings -> shop settings : Checkout -> click order complete -> add to each payment method
The order variables:
https://tags.ekm.com/group-order-complete-tags.asp#attr-order_number
Will also need to add tag manager to payment thank-you text fields as well.
Script:
<script>
var dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '[ekm:order_number]','order_value' : '[ekm:totalcost_number_only]', 'event' : 'order-submitted'});
</script>
Custom JS
function () {
var message = document.getElementsByClassName("ekm-formmail-message");
return (typeof message[0] != "undefined") ? message[0].innerHTML : '';
}
Product Feed
http://youraccount.ekmpowershop{server_number}.com/ekmps/shops/{username}/data/ekm_p_{username}.txt
{server_number} is the server number {username} is your username
server number can be gotten from the HTML source code e.g. ga('linker:autoLink', ['17.trusted-secure.com']);
17 is the server number