MineWhat Platform

The most comprehensive toolkit for growth stage eCommerce businesses.

Most of us have atleast a few script tags integrated into our websites. One rarely does the trick right? but with the added value that each of these scripts bring comes the added trouble of having to manage each and everyone of them. How often have you had to pull in a webmaster to check up a script integration gone wrong! Luckily for the rest of us mortals(read non tech marketers) Google in its kindness decided to give us an amazing tool to do just that: Tag Manager. Here’s some tips/tricks we use that you might find useful. Let us know what you think.

Installing custom “non-google” scripts in google tag manager

Once you have created an account you will be asked to create a container. What the container does is, it holds any of the other tags you choose to add and it ensures all the tags you add don’t slow down your webpage. You’ll find a few helpful tags like the AdSense tracker, Google Analytics etc…already there by default. If you wish to add a custom script that’ll require a few extra steps

  • Choose “Custom HTML Tag” from the drop down list. and then write or copy and paste code as required

  • Set rules according to what you’d like the script tag to track (example: you want Google Analytics to track all your webpages then you select the pages rule)

  • Save your work as a version and publish when you are satisfied with the preview.

  • You can also choose to debug the script code with the “preview & debug” option.

Tracking in page objects(Preview Panes, Quick-look Panes etc..) with google tag manager

Sometimes a simple “all pages” rule might not be enough if you have any objects within a page that don’t lead to a URL change on clicking. Ecommerce stores have a few of those: product previews and so on.

Google lets you track these with a special “event” rule.

  • Before you can track these you will have to write a trigger point on your website for the what you want to track, lets say clicks on a “preview pane”. It should look something like this.

  • Once you’ve done that Choose the “{{event}}” option from the rule creation interface and create a rule pointing to the trigger point you just defined (example: {{events}} equals previewpaneclick).

  • Now here’s the interesting bit once you’ve defined this trigger point once you can use it to connect to multiple tags as opposed to just writing the same code over and over each time, simply use the trigger point to create a firing rule for each of the scripts.

Tracking flash objects with google tag manager

You can track videos the same way you track other events just write a trigger point as described above and then use that to create another rule on Google Tag Manager.

Are there any other workarounds that you use?, let us know. If you’d like us to cover any of the topics talked about here in more detail, just leave a comment saying so.

Subscribe to our newsletter

You have Successfully Subscribed!

Pin It on Pinterest