Viewing 1 replies (of 1 total)
  • Thread Starter alexandre.alouit

    (@alexandrealouit)

    I added the functionality to the plugin,
    hope which is integrated in next version..

    frontend/class-frontend.php

    297d296
    < 						$script = 'ga.js';
    300c299,303
    < 						echo "('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/" . $script . "'";
    ---
    > 							if( !empty( $this->options['gajssupportdisplayadvertising'] ) ) {
    > 							echo "('https:' == document.location.protocol ? 'https://' : 'https://') + 'stats.g.doubleclick.net/dc.js'";
    > 						} else {
    > 							echo "('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js'";
    > 						}

    admin/class-admin.php

    175c175
    < 			foreach ( array( 'extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'allowanchor', 'allowlinker', 'allowhash', 'rsslinktagging', 'advancedsettings', 'trackregistration', 'theme_updated', 'cv_loggedin', 'cv_authorname', 'cv_category', 'cv_all_categories', 'cv_tags', 'cv_year', 'cv_post_type', 'outboundpageview', 'downloadspageview', 'trackcrossdomain', 'gajslocalhosting', 'manual_uastring', 'taggfsubmit', 'wpec_tracking', 'shopp_tracking', 'anonymizeip', 'trackcommentform', 'debug', 'firebuglite', 'yoast_tracking' ) as $option_name ) {
    ---
    > 			foreach ( array( 'extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'gajssupportdisplayadvertising', 'allowanchor', 'allowlinker', 'allowhash', 'rsslinktagging', 'advancedsettings', 'trackregistration', 'theme_updated', 'cv_loggedin', 'cv_authorname', 'cv_category', 'cv_all_categories', 'cv_tags', 'cv_year', 'cv_post_type', 'outboundpageview', 'downloadspageview', 'trackcrossdomain', 'gajslocalhosting', 'manual_uastring', 'taggfsubmit', 'wpec_tracking', 'shopp_tracking', 'anonymizeip', 'trackcommentform', 'debug', 'firebuglite', 'yoast_tracking' ) as $option_name ) {
    567a568,573
    > 			'id'      => 'gajssupportdisplayadvertising',
    > 			'label'   => __( 'Support Display Advertising', 'gawp' ),
    > 			'desc'    => __( 'For help, <a href="https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad">look here</a>.', 'gawp' ),
    > 			'content' => $this->checkbox( 'gajssupportdisplayadvertising' ),
    > 		);
    > 		$rows[]                       = array(
    752a759
    > 			'gajssupportdisplayadvertising' => false,

Viewing 1 replies (of 1 total)
  • The topic ‘Support Display Advertising’ is closed to new replies.