Title: [Plugin: Google Analytics for WordPress] Google Analytics Tracking Code with DoubleClick Option
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] Google Analytics Tracking Code with DoubleClick Option

 *  [optimized-marketing](https://wordpress.org/support/users/optimized-marketingcom/)
 * (@optimized-marketingcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-google-analytics-tracking-code-with-doubleclick-option/)
 * I am trying to setup a google analytics remarketing campaign and it requires 
   the DoubleClick option in the Tracking Code. I was unable to find an option in
   Google Analytics for WordPress plugin to enable DoubleClick. Is there an option
   I am missing, or hasn’t this feature been included yet?
 * Thanks
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [optimized-marketing](https://wordpress.org/support/users/optimized-marketingcom/)
 * (@optimized-marketingcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-google-analytics-tracking-code-with-doubleclick-option/#post-3051693)
 * I have created my own solution to allow for DoubleClick Data. I added a check
   box to the setting page and check the variable, if that option is checked I use
   the DoubleClick code and js instead of the default Google Analytics code.
 * Here is the DoubleClick Code I used.
 * $script = ‘dc.js’;
    echo “(‘https:’ == document.location.protocol ? ‘[https://&#8217](https://&#8217);:‘
   [http://&#8217](http://&#8217);) + ‘stats.g.doubleclick.net/” . $script . “‘;”;
 * I tried to contact the Developer of this plug in to get the changes added into
   the plugin but have not heard back from them.
 * here is a helpful for how to hardcode the change with out the setting check box
   option.
    [http://adam-ware.com/2012/09/07/remarketing-for-google-analytics-for-wordpress/](http://adam-ware.com/2012/09/07/remarketing-for-google-analytics-for-wordpress/)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Google Analytics for WordPress] Google Analytics Tracking Code
with DoubleClick Option’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

## Tags

 * [doubleclick](https://wordpress.org/support/topic-tag/doubleclick/)
 * [remarketing](https://wordpress.org/support/topic-tag/remarketing/)

 * 1 reply
 * 1 participant
 * Last reply from: [optimized-marketing](https://wordpress.org/support/users/optimized-marketingcom/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-google-analytics-tracking-code-with-doubleclick-option/#post-3051693)
 * Status: not resolved