Created on 5 April, 2018 | Updated on 5 July, 2021
Add Google Adwords Conversion Tracking To 3dcart

Add Google Adwords Conversion Tracking To 3dcart

A step by step guide on how to add Google Adwords conversion tracking to 3dcart.

Step 1

Login to 3dcart and click on content > titles & content

Step 2

Scroll down until you find Checkout #4 and click on the gear icon on the right, than choose edit

Step 3

Scroll down to footer section and click on the source code button, this will disable the advanced editor as we do not want to add any styling, simply paste the Adwords tracking code

Step 4

Login to Google Adwords and click on the 3dot menu in the top right corner and select Conversions under Measurement column.

Click on the big blue plus sign and select website as your tracking template.

Than do the following :

  • Conversion name
    • enter any name
  • Category
    • Purchase / Sale
  • Value
    • Use different values for each conversion
  • The rest can be as defaulted

Click on Create and continue

There are two parts, click on download snippet for both the Global site tag and Event snippet

First past your Global site tag such as the example below (do not use this example, use your own downloaded code snippet)

<!-- Global site tag (gtag.js) - Google AdWords: 123456789123 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=xx-123456789123"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'xx-123456789123');
</script>

Than right after that we paste the event snippet, before we do this we need to edit the code. replace the following lines from your downloaded code snippet to the code example below :

  • ‘send_to’: ‘xx-123456789123/lkadsjKDweLK45W’,
    • change this line with your snippet

And change the currency value to match yours

Code Example (change the send_to and currency to your code snippet)

<script>
  gtag('event', 'conversion', {
      'send_to': 'xx-123456789123/lkadsjKDweLK45W',
      'value': [total_noformat],
      'currency': 'USD',
      'transaction_id': '[invoice-number]'
  });
</script>

Step 5

Paste the resulting code in the footer and click on save

Need Help?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.