Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are missing several syntaxes for e-commerce to work in Universal Analytics. Have you read the documentation on <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce" rel="nofollow">https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce</a>? </p> <p>What you have now is basically only the transaction saved within GTM, so there are several ways to go about doing the actual transaction. You could set up rules within GTM to fire the transaction if it sees a specific event within the dataLayer, which looks like what you have tried? If so, then you need to create a rule to fire the transaction once it sees this data. </p> <p>Or, you could just send the whole transaction within the checkout page where the dataLayer itself is placed. </p> <p>For this to work, and what I am seeing is missing, is the call for the ecommerce javascript library. </p> <pre><code>ga('require', 'ecommerce', 'ecommerce.js'); </code></pre> <p>Also, your not sending the transaction itself using <code>ga('ecommerce:send');</code>. </p> <p>Some key components from the documentation from Google is, when using the ecommerce.js library: </p> <blockquote> <p>To load the ecommerce plugin, use the following command:</p> </blockquote> <pre><code>ga('require', 'ecommerce', 'ecommerce.js'); </code></pre> <blockquote> <p>This command must occur after you create your tracker object and before you use any of the ecommerce specific functionality.</p> </blockquote> <pre><code>ga('ecommerce:addTransaction', { 'id': '1234', // Transaction ID. Required. 'affiliation': 'Acme Clothing', // Affiliation or store name. 'revenue': '11.99', // Grand Total. 'shipping': '5', // Shipping. 'tax': '1.29' // Tax. }); ga('ecommerce:addItem', { 'id': '1234', // Transaction ID. Required. 'name': 'Fluffy Pink Bunnies', // Product name. Required. 'sku': 'DD23444', // SKU/code. 'category': 'Party Toys', // Category or variation. 'price': '11.99', // Unit price. 'quantity': '1' // Quantity. }); ga('ecommerce:send'); </code></pre> <p><strong>UPDATE</strong>: After a comment from questioner, I'd like to add this to my answer. What needs to be done is to set up the transaction itself to be tracked within GTM. To do this, follow theese steps: </p> <ol> <li>Create a new tag and name it, for example, "Track transaction".</li> <li>Select "Universal Analytics" as tag type </li> <li>Select "Transaction" as track type </li> <li>Add a new rule and name it, for example, "Conversion page" </li> <li>Enter URL contains "thank-you-page" and add another field </li> <li>Enter event equals gtm.dom</li> </ol> <p>Save and publish and see if this solves your issue. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload