Forum Replies Created

  • Theo

    Member
    24 June 2023 at 2:12 am in reply to: Tracking Conversions in GA4: Updating Div from iframe, Feasible?

    Absolutely, you can set up a conversion for such a scenario. Here’s the deal: when you’re dealing with an iframe, it’s a bit tricky because we don’t have direct access to elements inside it from the outside, right? But don’t worry, we have a solution.

    One option is to have your iframe convey the message to the parent when an update occurs. It’s like a little courier between the iframe and your main page. When the form status changes, it notifies the parent of the update.

    Alternatively, you could bring in the big guns and use Google Tag Manager (GTM) directly within the iframe. This way, you’re handling the messaging yourself and you have full control over it.

    So yes, it can be done. Customize that conversion marker and make your GA4 data work for you.

  • It sounds like you could try adjusting the parameters in your request headers. If you look at this sample request header, you’ll get a better idea of what settings might work best. Here is the link to a sample request header: Sample Request Header. This might help in setting the values for users by platform, operating system, and so on.

  • Theo

    Member
    15 August 2022 at 3:55 am in reply to: How can I track the user's current page in React using GA?

    It seems like you’re facing issues with sending the correct page title information to Google Analytics using the react-ga4 plugin, despite having set up a process to capture the current URL and sending it as a page hit. The problem might be stemming from the fact that the information being captured and sent is actually the title specified in the index.html file, which is “React App” in this case.

    Various factors could contribute to this behavior. One possibility is that the method used to capture the current URL might not be functioning as intended, hence not updating the page title according to the visited pages within your React application.

    Additionally, some of the plugins you’ve installed could potentially interfere with how the react-ga4 plugin works. While this is largely dependent on what each individual plugin does, it would be good to assess if the plugins might be affecting how information is captured and sent to Google Analytics. You might need to test their impact by temporarily disabling them to see if there are changes to the captured page title information.