Hi kamaleon,
For all redirects (except meta), the redirect happens before any HTML is output to the page. This is necessary as you cannot redirect using php once the output to the browser has started.
Meta redirects are a different story as they use a meta refresh tag in the header to tell the browser to redirect after x number of seconds. So in this case, the head elements will fire before the redirect (as long as the redirect is not instant, i.e., refresh seconds set to 0).
We are about to release a new update that makes many changes to the meta refresh functionality and allows you to add content or tracking pixel code to the redirect.
Currently you cannot do a meta redirect for Quick redirects, so if they are set up that way, you will not be able to utilize this functionality. But if you have the redirect set up as an Individual Redirect (set up on a page or post edit screen), then you can change the redirect to ‘meta’ and change the redirect seconds to ‘1’ or ‘2’ in the plugin options. That should allow for enough time for the pixel to fire.
Warm regards,
Don
I have it setup to wait for 10 seconds with meta, but all the <head> is not loaded.
This is the last I see in the page
<meta http-equiv=”refresh” content=”10; URL=http://google.com” />
And the pixel code is below that, and it does not fire.
Is there any way to make it load all the head section before redirecting?
kamaleon,
Can you send me a link to that page via email to [email protected]?
I want to look at the headers and see what is going on before I tell you to do anything else.
We are about to release the plugin update this afternoon, so you may need to wait until that is updated and then I think it will work much better for you.
Warm regards,
Don
Sure I can.
I tried it with a brand new wordpress.
I am emailing you the details.
I have just installed this plugin and am unsure as to how to get the Facebook Pixel to fire. I have the Meta Redirect Settings set to the following:
Load Page Content: On
Redirect Seconds: 10 secs
Redirect Trigger: body
Append Content to: body
Page content: facebook pixel code
I have not checked off any boxes on the ‘Quick Page Post Redirect Options’ page.
Any help would be appreciated. Thanks!