Conversion tracker setup on GTM

To insert the conversion tag on GTM, you need to replace the following macro’s as stated below.

Macro’s:

  1. VCS-ID – Describes the Conversion ID
  2. CONVERSION-ENDPOINT – Describes the conversion Endpoint URL, which you get it from Conversion tag.

Tag Template:

(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://" : "http://") + "cookie.vrtzads.com/pixel/vsync.js";
elem.async = true;
elem.setAttribute('data-id', 'vrtzcon');
elem.setAttribute('data-token', 'dsarqwrfdx');
elem.setAttribute('data-vcs', '');
elem.setAttribute('endpoint', '');
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();

After replacing the macro’s, tag will be displayed as below.

Sample Tag:

(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://" : "http://") + "cookie.vrtzads.com/pixel/vsync.js";
elem.async = true;
elem.setAttribute('data-id', 'vrtzcon');
elem.setAttribute('data-token', 'dsarqwrfdx');
elem.setAttribute('data-vcs', '97549997951');
elem.setAttribute('endpoint', '//cookie.vrtzads.com/pixel/vsync?convId=97549997951&label=Website Conversion&order_id=[ORDER_ID]&order_value=[ORDER_VALUE]&rd=[REDIRECT_URL]&email=[EMAIL]&product=[PRODUCT_ID]&cb=[CB]&vpr=[VPR]&u=Dr3KJtDSv24PdcoBTv_iUw');
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();