facebook-pixel-via-gtm-integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
facebook-pixel-via-gtm-integration [2023/12/16 10:04] – [First Deposit] evaldas-luksysfacebook-pixel-via-gtm-integration [2023/12/16 11:18] – [Custom variables] evaldas-luksys
Line 31: Line 31:
  
  
 +----
 +
 +
 +Additionally, we need to create a constant variable for the currency.
 +
 +{{:online:gtm:facebook-pixel:currency_variable.jpg|}}
 +
 +This variable will be used to send your currency to FB pixel with some events. Please make sure to replace 'EUR' currency with your own.
 +
 +Supported currencies can be found here: https://developers.facebook.com/docs/marketing-api/currencies
 ===== Triggers ===== ===== Triggers =====
 The triggers we'll be implementing: Dom Ready, Add To Betting Slip, Bets (main wallet), Deposit, FTD, Registration. The triggers we'll be implementing: Dom Ready, Add To Betting Slip, Bets (main wallet), Deposit, FTD, Registration.
Line 79: Line 89:
  
 Please make sure to use the same settings for tags when implementing, otherwise the FB pixel might not properly work. Please make sure to use the same settings for tags when implementing, otherwise the FB pixel might not properly work.
 +
 +**When adding scripts to tags, please do not use ones from the screenshots as they might not be correct. Please copy the correct code snippets from the below screenshots (code blocks).**
  
 ==== Install FB Pixel ==== ==== Install FB Pixel ====
Line 155: Line 167:
 <script> <script>
   fbq("track", "CompleteRegistration", {   fbq("track", "CompleteRegistration", {
-    currency: 'EUR',+    currency: {{Currency}},
     external_id: {{user ID}},     external_id: {{user ID}},
     value: {{Amount}}      value: {{Amount}} 
Line 161: Line 173:
 </script> </script>
 </code> </code>
- 
-**Do not forget to update currency field if it's different!!!** 
  
 ==== 2nd Deposit ==== ==== 2nd Deposit ====
Line 174: Line 184:
   fbq("trackCustom", "Subscribe", {   fbq("trackCustom", "Subscribe", {
     value: {{Amount}},     value: {{Amount}},
-    currency: 'EUR',+    currency: {{Currency}},
     external_id: {{user ID}}     external_id: {{user ID}}
   });   });
Line 189: Line 199:
 <script> <script>
 fbq("track", "Lead", { fbq("track", "Lead", {
-  currency: 'EUR',+  currency: {{Currency}},
   value: 0,   value: 0,
   external_id: {{user ID}},   external_id: {{user ID}},
  • facebook-pixel-via-gtm-integration.txt
  • Last modified: 2024/04/24 11:48
  • by evaldas-luksys