Skip to content

Commit

Permalink
Merge pull request #23 from stape-io/added_set_cookies_option_awin_ra…
Browse files Browse the repository at this point in the history
…kuten_klaviyo

added common cookies support for awin, rakuten, kalviyo
  • Loading branch information
Bukashk0zzz authored Oct 21, 2024
2 parents 05df214 + fa41afb commit 853efd6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
homepage: "https://stape.io/"
versions:
- sha: 2389936d0bdce0037b5a3e7640e304266b8544e8
changeNotes: Added common cookie support for awin, klaviyo, rakuten.
- sha: d09916e6d815e37dadd258473ce4bc65e2d50727
changeNotes: Added common cookie support.
- sha: f0b3afdab0acd076e71cf57bef517aa1f715c827
Expand Down
13 changes: 13 additions & 0 deletions template.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,19 @@ function addCommonCookie(eventData) {
'_scclid',
// Taboola cookies
'taboola_cid',
// Awin cookies
'awin_awc',
'awin_source',
// Rakuten cookies
'rakuten_site_id',
'rakuten_time_entered',
'rakuten_ran_mid',
'rakuten_ran_eaid',
'rakuten_ran_site_id',
// Klaviyo cookies
'stape_klaviyo_email',
'stape_klaviyo_kx',
'stape_klaviyo_viewed_items',
];
let commonCookie = null;

Expand Down
15 changes: 14 additions & 1 deletion template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ ___TEMPLATE_PARAMETERS___
"name": "add_common_cookie",
"checkboxText": "Add Common Cookie",
"simpleValueType": true,
"help": "The tag will send common cookies in eventData to avoid some e-commerce platform limitations. Now supported by the next Stape tags: \u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/facebook-tag\" target\u003d\"_blank\"\u003eFacebook Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/tiktok-tag\" target\u003d\"_blank\"\u003eTikTok Events API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://github.com/stape-io/pinterest-tag\" target\u003d\"_blank\"\u003ePinterest Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/snapchat-tag\" target\u003d\"_blank\"\u003eSnapchat Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/taboola-tag\" target\u003d\"_blank\"\u003eTaboola\u003c/a\u003e"
"help": "The tag will send common cookies in eventData to avoid some e-commerce platform limitations. Now supported by the next Stape tags: \u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/facebook-tag\" target\u003d\"_blank\"\u003eFacebook Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/tiktok-tag\" target\u003d\"_blank\"\u003eTikTok Events API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://github.com/stape-io/pinterest-tag\" target\u003d\"_blank\"\u003ePinterest Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/snapchat-tag\" target\u003d\"_blank\"\u003eSnapchat Conversion API\u003c/a\u003e\u003cbr /\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/taboola-tag\" target\u003d\"_blank\"\u003eTaboola\u003c/a\u003e\u003c/br\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/awin-tag\" target\u003d\"_blank\"\u003eAwin\u003c/a\u003e\u003c/br\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/rakuten-tag\" target\u003d\"_blank\"\u003eRakuten\u003c/a\u003e\u003c/br\u003e\n\u003ca href\u003d\"https://tagmanager.google.com/gallery/#/owners/stape-io/templates/klaviyo-tag\" target\u003d\"_blank\"\u003eKlaviyo\u003c/a\u003e\u003c/br\u003e"
},
{
"type": "GROUP",
Expand Down Expand Up @@ -1120,6 +1120,19 @@ function addCommonCookie(eventData) {
'_scclid',
// Taboola cookies
'taboola_cid',
// Awin cookies
'awin_awc',
'awin_source',
// Rakuten cookies
'rakuten_site_id',
'rakuten_time_entered',
'rakuten_ran_mid',
'rakuten_ran_eaid',
'rakuten_ran_site_id',
// Klaviyo cookies
'stape_klaviyo_email',
'stape_klaviyo_kx',
'stape_klaviyo_viewed_items',
];
let commonCookie = null;
Expand Down

0 comments on commit 853efd6

Please sign in to comment.