Jump to content

Recommended Posts

Hi,

 

I'd like to add the Javascript for Conversion Tracking in order confirmation page. Here is the script:

<script>
dataLayer.push({
		'event':'ecomm_event',
    'transactionId': 'XXXXX', // Transaction ID - this is normally generated by your system.
    'transactionAffiliation': 'XXXXXXX', // Affiliation or store name
    'transactionTotal': 'XX.XX', // Grand Total
    'transactionTax': 'XX.XX' , // Tax.
    'transactionShipping':'XX.XX', // Shipping cost
    'transactionProducts': [
	{
        'sku': 'XXXXXX', // SKU/code.
        'name': 'XXXXXXXX', // Product name.
        'category': 'XXXXXXXX', // Category or variation.
        'price': 'XX.XX', // Unit price.
        'quantity': 'X'
    }]
});
</script>

- DELETED -

 

I decided to use Google Analytics module instead.

Edited by Ben90 (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  On 8/20/2017 at 8:57 PM, Scully said:

Google Analytics sends everything about everything to google. Not only transactions which have been made. We don't use it. We only track the order confirmation step and nothing more.

I use Google Analitics module. But it do not sent information about products. In Google Analytic Page > Product Perfomance. No information about products.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...