The Privacy Suite for WordPress

Configuring Complianz for Server-side Tag Manager

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia, Brazil & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

Although server-side tag manager is relatively new we had some questions about how to proceed if you serve tags from the server-side, and not directly from the third-party domain googletagmanager.com. There are 2 domains to consider. In this example you will see the first domain that sets the tag, and the transport URL, that receives data.

In this case, it’s both tagging.example.com, a self-managed server for both instances. It’s however possible to still serve the tags or container with googletagmanager.com or a dedicated Google Cloud solution and still hold another transport URL.

That being said, if you’re using server-side tagging, you probably understand the differences.

				
					<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://tagging.example.com/gtag/js?id=G-1234"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-1234', {
     transport_url: 'https://tagging.example.com',
     first_party_collection: true
  });
</script>
				
			

Configuring Complianz

Complianz can add your GTM code automatically, but this is only available for standard implementation. If you want to use Complianz with your variation of server-side tagging.

Choose Google Tag Manager under “Statistics,” but make sure Complianz does not add the snippet. As shown in the below screenshots.

Afterwards you can add the desired snippet yourself and Complianz knows it should fire events through the data layer. To further  configure Tag Manager, please read this article

Recent articles

The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress

Categories

Popular articles

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!