Richard Korts
asked on
Pixel Retargeting
I've been asked to do this for a customer. I was provided a code snippet that looks like this (I edited out the actual Id for privacy):
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=xyz-abc"
height="0" width="0" style="display:none;visibi lity:hidde n"></ifram e></noscri pt>
<script>(function(w,d,s,l, i){w[l]=w[ l]||[];w[l ].push({'g tm.start':
new Date().getTime(),event:'gt m.js'});va r f=d.getElementsByTagName(s )[0],
j=d.createElement(s),dl=l! ='dataLaye rZypmedia' ?'&l='+l:' ';j.async= true;j.src =
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script ','dataLay erZypmedia ','xyzabc' );</script >
<!-- End Google Tag Manager -->
According to this link http://www.vicimediainc.com/install-retargetingremarketing-pixel-wordpress/, I just edit the theme footer & insert this code.
Does this sound correct?
I never heard of "Pixel Retargeting" before; hope one of you have.
Thanks
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=xyz-abc"
height="0" width="0" style="display:none;visibi
<script>(function(w,d,s,l,
new Date().getTime(),event:'gt
j=d.createElement(s),dl=l!
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script
<!-- End Google Tag Manager -->
According to this link http://www.vicimediainc.com/install-retargetingremarketing-pixel-wordpress/, I just edit the theme footer & insert this code.
Does this sound correct?
I never heard of "Pixel Retargeting" before; hope one of you have.
Thanks
First, what the customer has provided is their Google Tag Manager snippet. This code acts as a container that allows someone to insert any variety of scripts into a page. With this installed, your client can for example, insert Google Analytics, Crazyegg, Adwords Conversion Code, etc, all into the page, from a central dashboard in GTM, without asking you to put any additional code on the page.
Google recommends installing this code immediately after the opening body tag.
In regards to pixel retargeting. Your customer is probably setting up Remarketing in Google Analytics, or Adwords.
I'd recommend that you gain access to the GTM account and also install Tag Assistant so that you can make sure the installation is done correctly.
Google recommends installing this code immediately after the opening body tag.
In regards to pixel retargeting. Your customer is probably setting up Remarketing in Google Analytics, or Adwords.
I'd recommend that you gain access to the GTM account and also install Tag Assistant so that you can make sure the installation is done correctly.
ASKER
To Lucas Bishop,
How can I install "immediately after the opening body tag" in WordPress?
Thanks
How can I install "immediately after the opening body tag" in WordPress?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Lucas Bishop,
Thanks.
I kind of guessed at that & I did just what you said; exactly.
I saved it & brought up the site. It looked the same, but based on the code, that's what I would have thought.
Richard
Thanks.
I kind of guessed at that & I did just what you said; exactly.
I saved it & brought up the site. It looked the same, but based on the code, that's what I would have thought.
Richard
Good deal.
Yeah, you shouldn't see any changes on the site.
if you have Tag Assistant you'll see what is rendering in the code.
Yeah, you shouldn't see any changes on the site.
if you have Tag Assistant you'll see what is rendering in the code.
ASKER
The file footer.php is attached.
It is not clear to me where the code goes.
A pointer would be useful.
Thanks
footer.php