facebook-pixel-and-fresh8

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
facebook-pixel-and-fresh8 [2022/12/08 08:47] – [Lead] evaldas-luksysfacebook-pixel-and-fresh8 [2024/04/11 12:09] (current) – [Triggers] evaldas-luksys
Line 13: Line 13:
 ====== Custom variables ====== ====== Custom variables ======
  
-In some code snippets we use <code>{{variable name}}</code>These variables represent data sent from our app. For instance, when user adds bet to betting slip, **addBetToBettingSlip** event is sent with some data, e.g. event UUID, market and etc... So each <code>{{variable}}</code> created represents single piece of data, which then can be used in Tags.+In some code snippets we use <code>{{variable name}}</code>These variables represent data sent from our app. For instance, when user adds bet to betting slip, **gtm-addBetToBettingSlip** event is sent with some data, e.g. event UUID, market and etc... So each <code>{{variable}}</code> created represents single piece of data, which then can be used in Tags.
  
 For custom variable list please read Custom variables section. For custom variable list please read Custom variables section.
Line 129: Line 129:
  
 {{:online:meta-pixel-fresh8:fb_pixel_lead_tag.jpg|}} {{:online:meta-pixel-fresh8:fb_pixel_lead_tag.jpg|}}
 +
 +Code snippet below. Please replace currency 'EUR' with your currency symbol.
  
 <code> <code>
Line 139: Line 141:
 </script> </script>
 </code> </code>
- 
-**Do not forget to replace currency 'EUR' to your currency! 
-** 
 ==== Purchase ==== ==== Purchase ====
  
 {{:online:meta-pixel-fresh8:fb_pixel_slip_buy_tag.jpg|}} {{:online:meta-pixel-fresh8:fb_pixel_slip_buy_tag.jpg|}}
 +
 +Please replace currency with your own.
  
 <code> <code>
Line 160: Line 161:
         content_type: 'product',         content_type: 'product',
         content_ids: data,         content_ids: data,
-        currency: {{Currency}},+        currency: 'EUR',
         value: {{Amount}}         value: {{Amount}}
         });         });
Line 182: Line 183:
  
 {{:online:meta-pixel-fresh8:fb_pixel_complete_registration.jpg|}} {{:online:meta-pixel-fresh8:fb_pixel_complete_registration.jpg|}}
 +
 +Please replace currency with your own.
  
 <code> <code>
 <script> <script>
   fbq("track", "CompleteRegistration", {   fbq("track", "CompleteRegistration", {
-    currency: {{Currency}},+    currency: 'EUR',
     external_id: {{user ID}},     external_id: {{user ID}},
     value: {{Amount}}      value: {{Amount}} 
Line 196: Line 199:
  
 {{:online:meta-pixel-fresh8:fb_pixel_subscribe_tag.jpg|}} {{:online:meta-pixel-fresh8:fb_pixel_subscribe_tag.jpg|}}
 +
 +Please replace currency with your own.
  
 <code> <code>
Line 201: Line 206:
   fbq("trackCustom", "Subscribe", {   fbq("trackCustom", "Subscribe", {
     value: {{Amount}},     value: {{Amount}},
-    currency: {{Currency}},+    currency: 'EUR',
     external_id: {{user ID}}     external_id: {{user ID}}
   });   });
Line 228: Line 233:
 {{:online:meta-pixel-fresh8:custom_variable_market.jpg|}} {{:online:meta-pixel-fresh8:custom_variable_market.jpg|}}
  
-==== {{Currency}} ==== 
-{{:online:meta-pixel-fresh8:custom_variable_currency.jpg|}} 
  
 ==== {{user ID}} ==== ==== {{user ID}} ====
Line 236: Line 239:
 ==== {{Amount}} ==== ==== {{Amount}} ====
 {{:online:meta-pixel-fresh8:custom_variable_amount.jpg|}} {{:online:meta-pixel-fresh8:custom_variable_amount.jpg|}}
 +
 +==== {{depositsCount}} ====
 +{{:online:meta-pixel-fresh8:custom_variable_deposits_count.jpg|}}
 +
 +==== More information about other possible data layer variables can be found here ====
 +https://wiki.advbet.com/admin/online-platform-cms/google-events#events-and-their-data
  
  
 ====== Triggers ====== ====== Triggers ======
  
 +Bare in mind, that event names in the screenshots might be out of date. For up to date event names please visit this page: https://wiki.advbet.com/admin/online-platform-cms/google-events?s[]=google&s[]=tag&s[]=manager#events-and-their-data-gtm
 ==== Pageview ==== ==== Pageview ====
  
  • facebook-pixel-and-fresh8.1670489232.txt.gz
  • Last modified: 2022/12/08 08:47
  • by evaldas-luksys