- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Hi All,
Need an solution for Installing Recipe Tracking for my site.
Below is recipe tracking tag for Pillsbury’s media campaign. This pixel should only track Visits to any "dessert" recipes.
Whenever I load my recipe page for Desserts , I see MetaDataLabel as "Course" and MetaDataValue as "Desserts" being fired.
How can we use these values to track the Desserts recipe page and assign them the pixel tags below:
Pleas help. Thank you.
<!-- Use of this pixel is subject to the Amazon ad specs and policies at http://www.amazon.com/b/?&node=7253015011 --><script type='text/javascript'>var _pix = document.getElementById('_pix_id');if (!_pix) { var protocol = '//'; var a = Math.random() * 1000000000000000000; _pix = document.createElement('img'); _pix.setAttribute('src', protocol + 's.amazon-adsystem.com/iu3?d=forester-did&ex-fargs=%3Fid%3De201336c-ca8e-4e85-752f-2690a728a3cd%26type%3D55%26m%3D1&ex-fch=416613&ex-src=www.pillsbury.com/recipes&ex-hargs=v%3D1.0%3Bc%3D2659338109779%3Bp%3DE201336C-CA8E-4E85-752F-2690A72... + '&cb=' + a); _pix.setAttribute('id','_pix_id'); document.body.appendChild(_pix);}</script><noscript> <img height='1' width='1' border='0' alt='' src='https://s.amazon-adsystem.com/iui3?d=forester-did&ex-fargs=%3Fid%3De201336c-ca8e-4e85-752f-2690a728a... /></noscript>
Solved! Go to Solution.
10-27-2015 07:58 AM - edited 10-29-2015 02:15 AM
Hi,
The easiest way would be to add this as a custom container tag, contact support@tealium.com, or speak to your account manager if you need any assistance.
After that, we can then look at getting it added to the tag library, if it's a common tag.
Many thanks
Steve Lake
edit: Brian's reply, below, is likely to be quicker to get running.
Prathamesh
If you look in detail at this script code, all it is really doing is creating an image pixel request that looks like this:
//s.amazon-adsystem.com/iu3?d=forester-did&ex-fargs=%3Fid%3De201336c-ca8e-4e85-752f-2690a728a3cd%26type%3D55%26m%3D1&ex-fch=416613&ex-src=www.pillsbury.com/recipes&ex-hargs=v%3D1.0%3Bc%3D2659338109779%3Bp%3DE201336C-CA8E-4E85-752F-2690A728A3CD&cb=116523592500016100
It can be hard to read when encoded, so here is the same URL decoded with each outbound querystring parameter on a new line
//s.amazon-adsystem.com/iu3 ?d=forester-did &ex-fargs=?id=e201336c-ca8e-4e85-752f-2690a728a3cd&type=55&m=1 &ex-fch=416613 &ex-src=www.pillsbury.com/recipes &ex-hargs=v=1.0;c=2659338109779;p=E201336C-CA8E-4E85-752F-2690A728A3CD &cb=116523592500016100
*I don't know all of the details for this tag, so use some of the items below like the load rule and the extension as examples to build off of, not as a complete solution.
Now we just need to setup a Generic Tag with the amazon adsystem URL
Add a load rule to only have the tag fire on Receipe pages
Next we need to setup the data mappings:
For this example I am only going to use one Set Data Value Extension. However you could have many and each could have their own conditions to meet your requirments.
I have to implement a similar tag which has the javascript part and image pixel part
The above solution works for the <no script> part to send an image pixel. What about the javascript tag? Do we need to add 2 generic tags- 1 for js and other for image pixel?
Copyright All Rights Reserved © 2008-2023