• Resolved boonhost

    (@boonhost)


    Hi,

    As the title states. When trying to redirect a user to a confirmation page we get a “Warning: Cannot modify header information – headers already sent by”.

    We are now showing a confirmation message again, which works just fine. The problem with this is, we haven’t found a way to track reservations as events in Google Analytics, if there is one.

    So we are after a solution for either resolving the first problem or a guide on how to track reservations as events in Google Analytics.

    Hope you can help.

    Best regards.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello boonhost,

    Unfortunately, there are no Google Analytics options or settings in our plugin. That being said, perhaps you could just set up your own goals and funnels in your Analytics account using the URL of your booking form page? Unfortunately, that’s not something we’d be able to help with. Also, the bookings are created using a custom post type, so maybe there is already another plugin out there that helps you set up analytics for custom post types.

    Regarding the redirect, we collect any output we generate before the header redirection in buffers, so there must be something in your theme or other plugin which has been generating output. Try changing the theme or disabling other plugins and see if that make any difference. Then you can proceed accordingly.

    However, we will also look into the options to redirect the visitor as early as possible after the form being processed but can not share any timeline with that.

    Thread Starter boonhost

    (@boonhost)

    Hi,

    Thank you for your reply and suggestions.

    I’ll see what I can come up with, regarding event tracking in Google Analytics. I might be able to cook something up using Google Tag Manager.

    It must be the Divi theme that triggers the warning, because disabling all other plugins didn’t help and switching themes on a live site isn’t really an option. I could of course make a copy of the site and begin testing there, but I think I’ll live with the confirmation message and call it a day. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning when trying to redirect’ is closed to new replies.