Hey all,
I am currently working for the first time setting up Google DCM tags. I tried pasting the DCM code as a Third party non-sequential JaveScript through Adobe DTM. The code I used is pasted below:
<!--
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: ABCD
URL of the webpage where the tag is expected to be placed: https://www.abcd.com.au/agegate/
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 05/24/2018
-->
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="https://8573949.fls.doubleclick.net/activityi;src=1234567;type=abcd;cat=test_0;dc_lat=;dc_rdid=;tag_...' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
<noscript>
<iframe src="https://8573949.fls.doubleclick.net/activityi;src=1234567;type=abcd;cat=test_0;dc_lat=;dc_rdid=;tag_...?" width="1" height="1" frameborder="0" style="display:none"></iframe>
</noscript>
<!-- End of DoubleClick Floodlight Tag: Please do not remove -->
1. On trying to add this code straight into DTM, I am getting a few errors and the rule cannot be saved. Can anyone please advise the best approach of going about tweaking this code for successful DCM implementation? I have many more requests for DCM implementation and a best approach would help me or the devs tweak the codes for all requests.
2. If I want to set up this code only for a particular landing page, would the best way to go about it be selecting condition and specifying an include path that contains the desired landing page? This should do the job right, or is there any other steps to follow for successful implementation?
Any help would be greatly appreciated. Thanks! [Personal contact info removed - Mod]