Where & when do you register a webpixel in a Remix App

Where & when do you register a webpixel in a Remix App

PeaceOut
Shopify Partner
16 0 3

Hey everyone, 

 

I'm struggling to find the right place were to call the graphQL query to register a webpixel. I managed to register the pixel through the GraphiQL interface, but can't find where to do it in the app. I have tried in the auth.$.js loader but it seems it's never called. 

 

CleanShot 2025-02-27 at 12.14.31.png

 

The second console.log is never showing up in the console.

 

I suppose the Webpixel should be registered after the app install.

 

Any help on this ? 

 

Thanks a lot

Replies 0 (0)