Skip to content

Commit

Permalink
Add Reddit Fix #1215
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed May 21, 2024
1 parent 2c07243 commit 3894433
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ tarteaucitron.services.iframe = {
}
};

// reddit
tarteaucitron.services.reddit = {
"key": "reddit",
"type": "ads",
"name": "Reddit",
"uri": "https://business.reddithelp.com/helpcenter/s/article/Reddit-Advertising-Policy-Overview",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";

if (tarteaucitron.user.redditInit === undefined) {
return;
}

!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt('init',tarteaucitron.user.redditInit, {"aaid":tarteaucitron.user.redditAAID,"externalId":tarteaucitron.user.redditExternalId,"idfa":tarteaucitron.user.redditIDFA});rdt('track', 'PageVisit');
}
};

// zoho
tarteaucitron.services.zoho = {
"key": "zoho",
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.services.min.js

Large diffs are not rendered by default.

0 comments on commit 3894433

Please sign in to comment.