Reputation: 39
Example:
I load a banner on the website that has the destination link in DFP www.mysite.com
The javascript on the page forces DFP to add zone=above_the_fold
When the user clicks the banner the destination link is now www.mysite.com?zone=above_the_fold
Example: I load a banner on the website that has the destination link in DFP www.mysite.com?campaign=summer_sale
The javascript on the page forces DFP to add zone=above_the_fold
When the user clicks the banner the destination link is now www.mysite.com?campaign=summer_sale&zone=above_the_fold
Note: Due to a very very specific business case I use DFP to advertise to pages on the same website and I need to measure the impact on sales in Google Analytics. That's what the parameters are for.
Thanks in advance
Upvotes: 0
Views: 2258
Reputation: 154
First you need to pass the URL parameters to DFP. You can try Google DFP: Pass UTM_Source to DFP with javascript
After that, you will build the destination URL:
<script>
var clickTag = %%CLICK_URL_ESC%%%%DEST_URL%%?=utm_source=%%PATTERN:utm_source%%;
</script>
%%PATTERN:utm_source%% it is a DFP Macro
Upvotes: 2