Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
bigCommerce - How to put GTM on thankyou page?

I want to put this code sample on the page after successful purchase of product(s), well, how to do that and where to find that file by Cyber Dick (WebDAV)

Please help, here is a sample of the code:

<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
    'event': 'purchase-gtm', 
    'ecommerce': {
        'purchase': {
            'actionField': {
                'id': '{{checkout.order.id}}', // order number
                'revenue': '{{checkout.order.total.value}}', // total transaction value (incl. tax and shipping)
                'tax':'{{ecommerce.tax}}',
                'shipping': '{{ecommerce.shipping}}'
            },
           'products': [
            {{#each checkout.order.items}}
            {
                'name': '{{name}}', //Product Name
                'id': '{{product_id}}', //Product ID
                'price': '{{price.value}}', //Product Price
                'brand': '{{brand.name}}', //Product Brand
                'category': '{{category}}', //Product Category
                'quantity': '{{quantity}}',
                'variant': '{{sku}}', //Product variant if applicable
            },
            {{/each}}
        ],
        }
    }
});
</script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!