How can I locate and understand the Facebook pixel code in my eCommerce website's theme?

Hey, I worked with an agency to market my eCommerce products. They did everything like setting up the ads account, creating Shopify, and attaching the pixels to it and the website.

Now, my website shows this pixel code that is attached to it but to my surprise, it is nowhere to be found in the theme liquid.

trekkie.load(

{“Trekkie”:{“appName”:“storefront”,“development”:false,“defaultAttributes”:{“shopId”:59934769306,“isMerchantRequest”:null,“themeId”:128141656218,“themeCityHash”:“7388369425711765324”,“contentLanguage”:“en”,“currency”:“AED”},“isServerSideCookieWritingEnabled”:true,“monorailRegion”:“shop_domain”},“Facebook Pixel”:{“pixelIds”:[“925599355498930”],“agent”:“plshopify1.2”},“Session Attribution”:{},“S2S”:{“facebookCapiEnabled”:true,“facebookAppPixelId”:“925599355498930”,“source”:“trekkie-storefront-renderer”}}

);

Also, what kind of a code is this, I have never seen any from the meta’s business account this way.

It could be because of this error that my campaigns are not working right. For, for example when I try boosting the feed post or run the following campaign, there seems to be no activity on my social media then I last week ran a conversion campaign and there was 1 purchase tracked (idk how) and that was a test purchase I did myself not even through clicking on the ad on social media. Even though the purchase was tracked, there were ZERO add-to carts and initiated checkout.

Double-check which ad account is connected to your Shopify store & from which ad account you’re running ads.

You can test which pixel is connected to your Shopify store using the chrome extension - Facebook pixel helper

Check pixels -

  1. Go to Business Setting in Business Manager.
  2. Select your business.
  3. Click Event Manager
  4. Select Pixels.

You can show the pixel list over their simply open the pixel & check events

so, the case is everything is integrated perfectly alright. But surprisingly my ad results are not coming. I have checked with the events as well and they are working like a fine wine.

The only new thing to me is this Trekkie code. Could you or anyone else by chance tell me if I need to integrate a pixel code from meta as well or if this Trekkie will work okay if integrated correctly?

If it’s working fine & pixel is getting events from your website, then no need to integrate from meta.

If you want to remove Trekkie code, then re add pixel on your Shopify store and follow to standard procedure to add FB pixel on Shopify.

Check this easy video - How To Install Facebook Pixel Shopify (UPDATED 2022)! - YouTube