Rez Mihai
Rez Mihai

Reputation: 39

Add URL parameters to DoubleClick destination URL

  1. Is there anyway to add URL Parameters to the destination URL of a creative?

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

  1. If somehow the above is possible, can I mix parameters from DFP with forced parameters from javascript code?

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

Answers (1)

felipk
felipk

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

Related Questions