GTM + Kentico Cloud

This file will allow you to review the markup and GTM tags, as seen in the video at bluemod.us/kcloud-GTM in order to use Google Tag Manager with Kentico Cloud's tracking and contact management.

This uses a data attribute on the button of data-ketactivity="learnmore"

Learn more »

Checkout

Clicking this button will create a "checkout" activity.

This uses a data attribute on the button of data-ketactivity="checkout"

Checkout »

Share

Clicking this button will create a "share" activity.

This uses a data attribute on the button of data-ketactivity="share"

Share »

Setting Up Google Tag Manager

Use the following code snippets for your Custom HTML tags in Google Tag Manager:

Kentico Cloud - Link Activity tag: <script> ket("action", "{{gtm.element.dataset.ketactivity}}"); </script>

Kentico Cloud - Form Submission tag: <script> ket("action", "Form_Submit"); </script>

Your Kentico Cloud - Pageview tag can just be copied from the tracking settings within Kentico Cloud for your site.