Skip to content

Commit

Permalink
Add tracking objects for Microsoft Forms/-Stream/Slideshare/Youtube/M…
Browse files Browse the repository at this point in the history
…aps (#158) (#167)

Co-authored-by: Oliver Kroener <ok@oliver-kroener.de>
  • Loading branch information
2 people authored and jonaseberle committed Feb 14, 2021
1 parent 9c934b5 commit f2f8974
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Configuration/TypoScript/Example/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ plugin.tx_cookieman {
20 = GoogleTagManager
30 = Bing
40 = FacebookPixel
50 = MicrosoftForms
60 = SlideShare
}

respectDnt = 1
showDntMessage = 1
}

# external content
external {
trackingObjects {
0 = GoogleMaps
10 = YouTube
20 = MicrosoftStream
}

respectDnt = 1
Expand Down
20 changes: 20 additions & 0 deletions Configuration/TypoScript/TrackingObjects/GoogleMaps.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugin.tx_cookieman.settings.trackingObjects {
GoogleMaps {
inject (
<script data-what="GoogleMaps" src="/typo3conf/ext/cookieman/Resources/Public/Js/Injects/example-inject.js"></script>
)
# example:
# inject (
# We are planning to support Google Maps out-of-the-box with cookieman. Stay tuned.
# )
show {
# https://www.microsoft.com/de-de/trust-center/privacy/gdpr-overview
GoogleMaps {
duration = none
durationUnit =
type = connection
provider = Google
}
}
}
}
48 changes: 48 additions & 0 deletions Configuration/TypoScript/TrackingObjects/MicrosoftForms.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
plugin.tx_cookieman.settings.trackingObjects {
MicrosoftForms {
inject (
<script data-what="MicrosoftForms" src="/typo3conf/ext/cookieman/Resources/Public/Js/Injects/example-inject.js"></script>
)
# example:
# inject (
# no example available yet. We are happy to receive a pull request if you have one.
# )
show {
# https://www.microsoft.com/de-de/trust-center/privacy/gdpr-overview
__RequestVerificationToken {
duration =
durationUnit = session
type = cookie_http
provider = Microsoft
}

AADNonce\.forms {
duration =
durationUnit = session
type = cookie_http
provider = Microsoft
}

DcLcid {
duration = 3
durationUnit = months
type = cookie_http
provider = Microsoft
}

MSFPC {
duration = 1
durationUnit = year
type = cookie_http+html
provider = Microsoft
}

MUID {
duration = 1
durationUnit = year
type = cookie_http+html
provider = Microsoft
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugin.tx_cookieman.settings.trackingObjects {
MicrosoftStream {
inject (
<script data-what="MicrosoftStrean" src="/typo3conf/ext/cookieman/Resources/Public/Js/Injects/example-inject.js"></script>
)
# example:
# inject (
# no example available yet. We are happy to receive a pull request if you have one.
# )
show {
# https://www.microsoft.com/de-de/trust-center/privacy/gdpr-overview
MicrosoftStream {
duration =
durationUnit = none
type = connection
provider = MicrosoftStream
}

Signature_Api {
duration =
durationUnit = session
type = cookie_http
provider = MicrosoftStream
}

Authorization_Api {
duration =
durationUnit = session
type = cookie_http
provider = MicrosoftStream
}

RedirectToThinEmbed {
duration =
durationUnit = session
type = cookie_http
provider = MicrosoftStream
}

UserSession_Api {
duration =
durationUnit = session
type = cookie_http
provider = MicrosoftStream
}

wfeSessionId {
duration =
durationUnit = session
type = cookie_http
provider = MicrosoftStream
}
}
}
}
43 changes: 43 additions & 0 deletions Configuration/TypoScript/TrackingObjects/Slideshare.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
plugin.tx_cookieman.settings.trackingObjects {
Slideshare {
inject (
<script data-what="Slideshare" src="/typo3conf/ext/cookieman/Resources/Public/Js/Injects/example-inject.js"></script>
)
# example:
# inject (
# You would use your own JavaScript to transform your placeholder elements into this:
# <iframe src="//www.slideshare.net/slideshow/embed_code/key/EAvVlu6VpOr6u1" width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen></iframe>
# )

show {
# https://www.slideshare.net/privacy
UID {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Slideshare
}

UIDR {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Slideshare
}

bcookie {
duration = 2
durationUnit = years
type = cookie_http+html
provider = Slideshare
}

lang {
duration =
durationUnit = session
type = cookie_http+html
provider = Slideshare
}
}
}
}
22 changes: 22 additions & 0 deletions Configuration/TypoScript/TrackingObjects/Youtube.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
plugin.tx_cookieman.settings.trackingObjects {
YouTube {
inject (
<script data-what="YouTube" src="/typo3conf/ext/cookieman/Resources/Public/Js/Injects/example-inject.js"></script>
)
# example:
# inject (
# We are planning to support Youtube out-of-the-box with cookieman. Stay tuned.
# Until then please add your own logic (e.g. replacing your consent message including a
# <button onclick="cookieman.consent('YouTube'); return false"> with the actual HTML for the video).
# )
show {
# https://policies.google.com/privacy
YouTube {
duration =
durationUnit = none
type = connection
provider = YouTube
}
}
}
}
59 changes: 58 additions & 1 deletion Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@
<trans-unit id="type.localstorage" resname="type.localstorage">
<source>Local Storage</source>
</trans-unit>
<trans-unit id="type.connection" resname="type.connection">
<source>Connection</source>
</trans-unit>
<trans-unit id="group.marketing" resname="group.marketing">
<source>Marketing</source>
</trans-unit>
<trans-unit id="group.marketing.desc" resname="group.marketing">
<trans-unit id="group.marketing.desc" resname="group.marketing.desc">
<source>With the help of these cookies we strive to improve our offer for our users. By means of anonymized data of website users we can optimize the user flow. This enables us to improve ads and website content.</source>
</trans-unit>
<trans-unit id="trackingobject._pk_id.desc" resname="trackingobject._pk_id.desc">
Expand Down Expand Up @@ -190,6 +193,60 @@
<trans-unit id="trackingobject.MUIDB.desc" resname="trackingobject.MUIDB.desc">
<source>Saves anonymous user data from multiple website visits on multiple sites to test advertisement efficiency.</source>
</trans-unit>
<trans-unit id="trackingobject.MSFPC.desc" resname="trackingobject.MSFPC.desc">
<source>The cookie allows user tracking across many Microsoft domains and is used for Bing Analytics.</source>
</trans-unit>
<trans-unit id="trackingobject.DcLcid.desc" resname="trackingobject.DcLcid.desc">
<source>The cookie is used to implement Microsoft-forms on the website.</source>
</trans-unit>
<trans-unit id="trackingobject.AADNonce.forms.desc" resname="trackingobject.AADNonce.forms.desc">
<source>The cookie is used to implement Microsoft-forms on the website.</source>
</trans-unit>
<trans-unit id="trackingobject.__RequestVerificationToken.desc" resname="trackingobject.__RequestVerificationToken.desc">
<source>The cookie is used to implement anti-forgery concerning Microsoft-forms on the website.</source>
</trans-unit>
<trans-unit id="trackingobject.UID.desc" resname="trackingobject.UID.desc">
<source>The cookie is used for market and user research (Scorecard Research).</source>
</trans-unit>
<trans-unit id="trackingobject.UIDR.desc" resname="trackingobject.UIDR.desc">
<source>The cookie is used for market and user research (Scorecard Research).</source>
</trans-unit>
<trans-unit id="trackingobject.bcookie.desc" resname="trackingobject.bcookie.desc">
<source>Browser Identifier cookie to uniquely identify devices accessing LinkedIn to detect abuse on the platform.</source>
</trans-unit>
<trans-unit id="trackingobject.lang.desc" resname="trackingobject.lang.desc">
<source>Used to remember a user's language setting.</source>
</trans-unit>
<trans-unit id="group.external" resname="group.external">
<source>External content</source>
</trans-unit>
<trans-unit id="group.external.desc" resname="group.external.desc">
<source>With the help of these cookies we strive to improve our offer for our users. By means of providing video content or other useful content like maps to enhance the user experience.</source>
</trans-unit>
<trans-unit id="trackingobject.YouTube.desc" resname="trackingobject.YouTube.desc">
<source>Is used to connect to YouTube and display to videos.</source>
</trans-unit>
<trans-unit id="trackingobject.GoogleMaps.desc" resname="trackingobject.GoogleMaps.desc">
<source>Is used to connect to Google Maps and to display those maps.</source>
</trans-unit>
<trans-unit id="trackingobject.MicrosoftStream.desc" resname="trackingobject.MicrosoftStream.desc">
<source>Is used to connect to Microsoft Stream and display to videos.</source>
</trans-unit>
<trans-unit id="trackingobject.Signature_Api.desc" resname="trackingobject.Signature_Api.desc">
<source>Is used to connect to the Microsoft signature API.</source>
</trans-unit>
<trans-unit id="trackingobject.Authorization_Api.desc" resname="trackingobject.Authorization_Api.desc">
<source>Is used to connect to the Microsoft authorization API.</source>
</trans-unit>
<trans-unit id="trackingobject.RedirectToThinEmbed.desc" resname="trackingobject.RedirectToThinEmbed.desc">
<source>Is used to embed Microsoft Stream videos.</source>
</trans-unit>
<trans-unit id="trackingobject.UserSession_Api.desc" resname="trackingobject.UserSession_Api.desc">
<source>Is used to store the user session of the Microsoft API.</source>
</trans-unit>
<trans-unit id="trackingobject.wfeSessionId.desc" resname="trackingobject.wfeSessionId.desc">
<source>Is used to store the Web Front End Session ID of Microsoft Stream.</source>
</trans-unit>
<trans-unit id="browser.dnt-enabled" resname="browser.dnt-enabled">
<source><![CDATA[You already opted out of user tracking via your <a target="_blank" rel="noopener" href="https://en.wikipedia.org/wiki/Do_Not_Track">browser's Do-not-track function</a>. We accept that. You can affect this via your browser's settings.]]></source>
</trans-unit>
Expand Down

0 comments on commit f2f8974

Please sign in to comment.