Skip to content

Commit

Permalink
feat(TrackingObjects): added Google Ads, updated Analytics+Tag Manager
Browse files Browse the repository at this point in the history
Fixes: #325
  • Loading branch information
jonaseberle committed Mar 4, 2024
1 parent cc336f7 commit 957cf53
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 23 deletions.
171 changes: 171 additions & 0 deletions Configuration/TypoScript/TrackingObjects/GoogleAds.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
plugin.tx_cookieman.settings.trackingObjects {
GoogleAds {
inject =
show {
# https://business.safety.google/adscookies/
__eoi {
duration = 6
durationUnit = months
type = cookie_http+html
provider = Google
}

NID {
duration = 6
durationUnit = months
type = cookie_http+html
provider = Google
}

__gads {
duration = 13
durationUnit = months
type = cookie_http+html
provider = Google
}

pm_sess {
duration = 30
durationUnit = minutes
type = cookie_http+html
provider = Google
}

pm_sess_NNN {
duration = 30
durationUnit = minutes
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^pm_sess_
}

aboutads_sessNNN {
duration = 30
durationUnit = minutes
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^aboutads_sess_
}

FPAU {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

ANID {
duration = 24
durationUnit = months
type = cookie_http+html
provider = Google
}

AID {
duration = 24
durationUnit = months
type = cookie_http+html
provider = Google
}

TAID {
duration = 14
durationUnit = days
type = cookie_http+html
provider = Google
}

_gcl_au {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

RUL {
duration = 12
durationUnit = months
type = cookie_http+html
provider = Google
}

FPGCLAW {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

FPGCLGB {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

_gcl_gb {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

_gac_gb_--wpid-- {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_gac_gb_
}

_gcl_aw {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

1P_JAR {
duration = 30
durationUnit = days
type = cookie_http+html
provider = Google
}

Conversion {
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
}

YSC {
duration =
durationUnit = session
type = cookie_http+html
provider = Google
}

VISITOR_INFO1_LIVE {
duration = 180
durationUnit = days
type = cookie_http+html
provider = Google
}

VISITOR_INFO1_LIVE__k {
duration = 180
durationUnit = days
type = cookie_http+html
provider = Google
}

VISITOR_INFO1_LIVE__default {
duration = 180
durationUnit = days
type = cookie_http+html
provider = Google
}
}
}
}
172 changes: 164 additions & 8 deletions Configuration/TypoScript/TrackingObjects/GoogleAnalytics.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,91 @@ plugin.tx_cookieman.settings.trackingObjects {
# )
show {
# https://developers.google.com/analytics/devguides/collection/gtagjs/cookie-usage
# many are missing. See https://business.safety.google/adscookies/
DSID {
duration = 2
durationUnit = weeks
type = cookie_http+html
provider = Google
}

test_cookie {
duration = 15
durationUnit = minutes
type = cookie_http+html
provider = Google
}

IDE {
duration = 24
durationUnit = months
type = cookie_http+html
provider = Google
}

FPLC {
duration = 20
durationUnit = hours
type = cookie_http+html
provider = Google
}

FPID {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Google
}

GA_OPT_OUT {
duration = 7
durationUnit = years
type = cookie_http+html
provider = Google
}

__utma {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Google
}

__utmb {
duration = 30
durationUnit = minutes
type = cookie_http+html
provider = Google
}

__utmc {
duration =
durationUnit = session
type = cookie_http+html
provider = Google
}

__utmt {
duration = 10
durationUnit = minutes
type = cookie_http+html
provider = Google
}

__utmz {
duration = 6
durationUnit = months
type = cookie_http+html
provider = Google
}

__utmv {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Google
}

_ga {
duration = 2
durationUnit = years
Expand All @@ -28,15 +113,21 @@ plugin.tx_cookieman.settings.trackingObjects {

_gat {
duration = 1
durationUnit = day
durationUnit = minute
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_gat(?:_UA\-\d+\-\d+)?$
}

_gid {
_gat_--custom-name-- {
duration = 1
durationUnit = day
durationUnit = minute
type = cookie_http+html
provider = Google
}

_gid {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}
Expand All @@ -46,15 +137,80 @@ plugin.tx_cookieman.settings.trackingObjects {
durationUnit = years
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_ga_GTM\-\d+$
htmlCookieRemovalPattern = ^_ga_
}

_dc_gtm_--property-id-- {
duration = 1
durationUnit = minute
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_dc_gtm_UA\-\d+\-\d+$
}

_gaexp {
duration = 93
durationUnit = days
type = cookie_http+html
provider = Google
}

_gaexp_rc {
duration = 10
durationUnit = seconds
type = cookie_http+html
provider = Google
}

_opt_awcid {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}

_opt_awmid {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}

_opt_awgid {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}

_opt_awkid {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}

_opt_utmc {
duration = 24
durationUnit = hours
type = cookie_http+html
provider = Google
}


_gac_--property-id-- {
duration = 3
durationUnit = months
duration = 90
durationUnit = days
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_gac_
}

AMP_TOKEN {
duration = 1
durationUnit = year
type = cookie_http+html
provider = Google
htmlCookieRemovalPattern = ^_gac_UA\-\d+\-\d+$
}
}
}
Expand Down
Loading

0 comments on commit 957cf53

Please sign in to comment.