• Resolved celeryman

    (@celeryman)


    Hello,

    Thank you for the plugin first of all. I appreciate you offering it for free. However, when I enable the plugin on my site, it does not pass the URL parameters when it redirects to the front page. I need this for a UTM campaign. Could you offer any advice on how I might be able to have it pass the UTM variables in the URL on redirect?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey @celeryman thanks for reaching out. There’s not a way I can see to do that in the current version, but I will look into adding this functionality in the next release.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    This is available in version 0.5.0. You’ll need to add the following line to your theme’s function.php file or a custom plugin file to allow for query vars to be passed on the redirect:

    add_filter( 'dwpb_pass_query_string_on_redirect', '__return_true' );

    This allows all query vars to be passed (note they are passed through esc_html during this process). Use the dwpb_allowed_query_vars to limit the vars passed in the redirect by passing an array of keys (e.g. return array( 'utm' ); to only pass utm query variables in the query string).

    I’m closing this topic, but please feel free to re-open or create a new one if you have any other issues!

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    For more information, see the companion issue in the github repo: https://github.com/joshuadavidnelson/disable-blog/issues/52

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect with UTM Vars’ is closed to new replies.