Skip to content

Commit

Permalink
Merge pull request mozilla#4620 from alexgibson/bug-1331069-remove-fl…
Browse files Browse the repository at this point in the history
…ashtalking-pixel

[bug 1331069] Remove Flashtalking pixel
  • Loading branch information
pmac authored Feb 1, 2017
2 parents 0d6c7fc + a598d92 commit 7c63369
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bedrock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,14 +1314,11 @@ def lazy_email_backend():
'activist': '014783244707853607354:bbpl3emdsii',
}

# Bug 1331069 - Replace Flashtalking Tracking Pixel With DoubleClick
FLASH_TALKING_URL = 'https://servedby.flashtalking.com/spot/8/6247;40428;4669/?spotName=Mozilla_Download_Conversion'
DOUBLE_CLICK_URL = ('https://ad.doubleclick.net/ddm/activity/src=6417015;type=deskt0;cat=mozil0;dc_lat=;dc_rdid=;'
'tag_for_child_directed_treatment=;ord=1;num=1?&_dc_ck=try')

TRACKING_PIXEL_URL = DOUBLE_CLICK_URL if config('SWITCH_DOUBLE_CLICK', default=DEV, cast=bool) else FLASH_TALKING_URL
# Bug 1331069 - Double Click tracking pixel for download page.
TRACKING_PIXEL_URL = ('https://ad.doubleclick.net/ddm/activity/src=6417015;type=deskt0;cat=mozil0;dc_lat=;dc_rdid=;'
'tag_for_child_directed_treatment=;ord=1;num=1?&_dc_ck=try')

if config('SWITCH_TRACKING_PIXEL', default=DEV, cast=bool):
CSP_IMG_SRC += (
'ad.doubleclick.net' if config('SWITCH_DOUBLE_CLICK', default=DEV, cast=bool) else 'servedby.flashtalking.com',
'ad.doubleclick.net',
)

0 comments on commit 7c63369

Please sign in to comment.