Add impression code to background advert

Posted in: Newspaper
Post count: 15

Hi,

A site I run the Newspaper Theme on is running a background-ad over the weekend. I’ve set up the background image and the URL, but they’ve asked me to add an Impressions tag as well.

They’ve provided this in three ways; firstly as an tag, which I’m assuming I can’t use because we need to add the image URL through the theme panel, secondly as an iFrame code which I’m assuming again I can’t use because there isn’t an iframe being used, and thirdly as a javascript code.

The Javascript code looks like this (I’ve removed part of the URL):

<SCRIPT language=’JavaScript1.1′ SRC=”https://ad.doubleclick.net/ddm/trackimpj/tracking-code-etc;dc_trk_aid=xxx;dc_trk_cid=xxx;ord=%5Btimestamp%5D;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?”></SCRIPT&gt;

In the Newspaper Theme Panel there is an area for custom JS but it says the opening and closing <script> tags need to be removed. I wasn’t sure how to do that with this code, as the impressions bit is within the opening tag.

Are you able to let me know how I can use this code with a background image?

Thanks!

Hannah

Post count: 22421

Hi,
Unfortunately our theme does not support DFP out of the box. We created the theme to work with standard adsense codes. You can follow this topic to see how other users managed to implement it but it’s only done through customization https://forum.tagdiv.com/topic/tutorial-responsive-ads-with-google-dfp/
Thank you!

Post count: 15

Hi Bogdan,

No worries, thanks for letting me know. I’ll have a look at that thread, thanks!

Hannah

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.