Spongecell

The following presents a guideline on how Spongecell standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:

JavaScript Code

Original Code

You should have received some JavaScript code from Spongecell that looks similar to the following example:

<script type=”text/javascript”>
var spongecellParams = {
clickTag: “SPONGECELL_CLICK_TAG”,
placementId: “SPONGECELL_PLACEMENT_ID”
};
</script>
<script src=”https://cdn.royale.spongecell.com/api/widgets/589678.js” type=”text/javascript”></script>
<noscript>
<a href=”https://spongecell.com/api/widgets/clickthrough/589678?noflash=true&noscript=true&placement_id=SPONGECELL_PLACEMENT_ID” target=”_blank”>
<img alt=”300×250″ border=”0″ height=”250″ src=”https://cdn.statics.live.spongecell.com/excellus/april2010/v3g/assets/300×250.jpg” width=”300″ /></a>
</noscript>

Modified Code

What you need to do is modify the URL in the <SCRIPT> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:

<script type=”text/javascript”>
var spongecellParams = {
clickTag: “%%CLICK_URL_UNESC%%”,
placementId: “SPONGECELL_PLACEMENT_ID”
};
</script>
<script src=”https://cdn.royale.spongecell.com/api/widgets/589678.js” type=”text/javascript”></script>
<noscript>
<a href=”https://spongecell.com/api/widgets/clickthrough/589678?noflash=true&noscript=true&placement_id=SPONGECELL_PLACEMENT_ID” target=”_blank”>
<img alt=”300×250″ border=”0″ height=”250″ src=”https://cdn.statics.live.spongecell.com/excellus/april2010/v3g/assets/300×250.jpg” width=”300″ /></a>
</noscript>

Note

The ad server recognises the [timestamp] placeholder and will automatically replace it with a cache buster. It is not necessary to convert it to the %%CACHEBUSTER%% macro manually.

Use %%CLICK_URL_UNESC%% at the beginning of a link. Use %%CLICK_URL_ESC%% when the click-tracker is the parameter of another URL.

<a href="%%CLICK_URL_UNESC%%https://www.google.com">link</a>
<a href="https://www.google.com?rd_url=%%CLICK_URL_ESC%%">link</a>