Meta Pixel tracking in Ghost

Hi all, I’ve got a Ghost theme installed called “Pitch”. It works great, I’ve done a decent amount of customization, and I’ve integrated the Meta Pixel tracking on the code injection section. That portion Is working. However, I’d also like to track when the user hits the subscribe button, and also when they choose a free or paid subsection and confirm it. The free subscription opens that Ghost modal that says “Now check your email”. Has anyone successfully integrated Meta Pixel tracking for events like that? You can see my Ghost blog here. https://monthly.artisansandmakers.com

That popover is Portal. It’s a React app in an iframe. I’m thinking it’s going to be hard to get a pixel in there.

HOWEVER, after the user confirms (clicks the magic link), that goes back to a regular Ghost page, with a couple redirects. You could probably detect users hitting the site with those query strings?

Yep, so the current code injection tracks the pixel accurately on all pages. When you say “confirms” you mean from the email they get after they sign up? If that’s what you mean, then it’s true that they will then load that redirect page… see that here. But I guess I can’t really differentiate between the new user landing on that page, and just a typical view… unless I append some kind of URL event on that redirect… I think that’s the only way?

I don’t know Meta’s tracking well enough to advise, but if you make a user and run through the magic link clicking, you’ll see that it’s a couple hops with query strings appended. Can you detect the query string? (To see it, open the browser’s dev tools - F12 - and go to the network tab, then paste in the magic link you receive by email.)

@Cathy_Sarisky I can put a custom query string in the welcome page redirect, and it does partially pick it up in Facebook… I think now it’s just understanding how Facebook tracks it. I think the custom query string is the best option from what I see. Thanks for the feedback.

You can also set up a Custom Conversion in Events Manager on the Thank You Page, you’ll get the actual “Confirmed double-opt in Subscriber” event