Trakpilot Docs
  • Getting Started
    • Installation
  • Google Ads
    • Setup tracking
    • How to find your CTID
    • How to check conversion events is working
  • Error Logs
  • GOOGLE ANALYTICS 4
    • How to setup GA4
    • How to check GA4 is working
      • Use GA4 DebugView
      • Check Real-Time Reports in GA4
      • Use browser Extension
  • Miscellaneous
    • FAQs
Powered by GitBook
On this page
  1. GOOGLE ANALYTICS 4

How to setup GA4

PreviousError LogsNextHow to check GA4 is working

Last updated 22 days ago

Step 1: Open Pixel Setting

Step 2: In Customer events, click button Add custom pixel

Step 3:

In the Pixel name field, enter: Omega Trakpilot Custom Script

Then click Add pixel to proceed

Step 4: Setup Customer privacy

  • Customer privacy - Permission: select Not required

  • Customer privacy - Data sale: select Data Collected does not qualify as data sale

Then click Save to proceed

Step 5: Press Ctrl + A and remove the suggested code

Step 6:

Paste your custom JavaScript code (previously copied) into the code editor section of your custom pixel.

Script code like this:

function injectScript(t){const e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){try{otGGTrackEvent(analytics,browser)}catch(t){console.error("Error loading script:",t)}};const r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}injectScript("https://trakpilot.com/customer-events/index.js?v="+(new Date).getTime());
  • Once done, click Save

Step 7: Click Connect to activate the pixel.

✅ That’s it! Your custom pixel is now installed and ready to track events using the Omega Trakpilot script.

Shopify asks you to describe how this pixel handles customer data,

read more