This article applies to Classic Commerce. (Looking for Contextual Commerce documentation?)
Google Tag Manager has built-in tag templates for AdWords Conversion Tracking, Google Analytics, DoubleClick Floodlight, Clicky, and AdWords Remarketing. Now, instead of setting up multiple external tracking instances in SpringBoard, you can just set up Google Tag Manager, which, in turn, serves all the tags and code snippets you would otherwise have to include separately on your pages. To learn more about it, sign up for a Google Tag Manager account.
Go to SpringBoard's Store Home » External Tracking. Click Add Tracking Method.
FastSpring offers four tracking types: Google Analytics, Google Universal Analytics, Google Adwords, and custom tracking. Select Custom Tracking Method and click Next. Enter in a Name that will be used for management purposes only. Decide whether you want the tracking code to Apply to All Pages (recommended) by selecting the checkbox or only apply to the final order completion page by leaving it unchecked.
Under <body> (after), click Click to Define Content. Paste in the code snippet that Google Tag Manager provided when you created a container.
Make the following changes (as shown below for comparison):
<!-- Google Tag Manager -->from the beginning and delete
<!-- End Google Tag Manager -->from the end
|Snippet provided by Google Tag Manager||Snippet after Necessary Changes|
|<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s),
<!-- End Google Tag Manager -->
Click Next. Move the tracking method to Active Status. Finally, remember to deactivate your Google Analytics and other external tracking methods that you now have set up to be served via Google Tag Manager.
We're Here to Help
If you need assistance implementing Google Tag Manager, please open a support ticket.