title: Shopify Trekkie loading extra tracking Pixels
body: <p>This is by far the most frustrating issue I've run into with Shopify. I'm trying to optimize a client's site speed by wrapping up all their tracking codes into Google Tag Manager to reduce the total number of outgoing requests. I removed all hardcoded tracking pixels from theme.liquid and placed them in GTM, went through ALL the apps and sales channels and disconnected from accounts, but there are still extra codes being loaded by Trekkie.</p>
  <p>I'm using the Shopify Facebook and Google Analytics integrations as recommended, so those are not represented in GTM. Even so, it's still somehow loading 2 Google Analytics, 2 Google Ads and 2 Facebook pixels.</p>
  <p><a href="https://i.stack.imgur.com/TqKQ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TqKQ2.png" alt="enter image description here" /></a></p>
  <p>As you can see in the source code, there are 2 facebook pixel ids contained within the Trekkie object, but how is this possible when there's only one place to add this information?</p>
  <p><a href="https://i.stack.imgur.com/c2fqM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c2fqM.png" alt="enter image description here" /></a></p>
  <p>If I remove the facebook pixel id from this screen (Themes &gt; Preferences), then the first pixel will not load, only the second unwanted pixel loads. The same issue persists for Google Analytics and Google Ads, except I cannot see multiple account ids in the source code, I can only see this in the network tab of DevTools and in the Google Tag Assistant.</p>
  <p><a href="https://i.stack.imgur.com/qjUxx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qjUxx.png" alt="enter image description here" /></a></p>
  <p>I would typically assume that these codes must be in the theme code somewhere or an app or something, except I can actually see with DevTools that the code is being called by Trekkie.</p>
  <p><a href="https://i.stack.imgur.com/fAsrC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fAsrC.png" alt="enter image description here" /></a></p>
  <p>This is driving me absolutely crazy and I've already spent lots of time trying to make what I thought should be a simple optimization. If anyone can help with this issue I'd be hugely appreciative.</p>
  <p>Thanks!</p>