Interstitial JavaScript Redirect with Redirection
-
Hi,
I created this GIST because I wanted to load some javascript before redirecting so I could track visitors via Facebook Pixel, Mautic, Google Analytics etc etc.
If your site outputs those tracking codes in the header or footer then you just need to change the redirect from server-side to javascript on the client-side and probably wait 3 or so seconds for the js to load. So that is what I have done with the GIST below.
If the author of the plugin is interested in having this in the core codebase I can add a field for which page to use and a new redirect type that inherits WordPress redirect type. IF not I may try and find time to make a plugin for it. Either way only if anyone is interested. Thanks!
https://gist.github.com/weismannweb/f1febe71e9f638d7d31464247d357961
The page I need help with: [log in to see the link]
- The topic ‘Interstitial JavaScript Redirect with Redirection’ is closed to new replies.