Forum Replies Created

  • Aaron

    Administrator
    1 July 2023 at 7:59 pm in reply to: Troubleshooting 403 Error: Google Analytics 4 POST Request in Postman

    It seems like the issue you’re experiencing is due to the format of the URL you’re using in your request. It would be best to ensure the proper http or https format for the link. In this case, adding ‘https://’ before ‘www.google-analytics.com’ in your request might help solve the problem. You were receiving a 403 error because the server wasn’t recognizing or accepting your get request, and this adjustment could fix that.

  • Aaron

    Administrator
    22 June 2023 at 12:38 pm in reply to: Google Analytics: gtag log entries not being sent to server

    Usually, when you send events directly with gtag(), they’re automatically sent to Google Analytics without you needing to handle the dataLayer yourself. I think there might be a problem with your configuration. Check your code for correct measurement ID (GA xxxxx-x), and that you’re using gtag('config', 'GA_MEASUREMENT_ID') not datalayer.push(). If you’ve already tried that, you might want to reach out to GA’s support, cause this situation sounds unusual. Troubleshooting it might need deeper digging in your code or setup. Hang in there, you got this!

  • Aaron

    Administrator
    21 June 2023 at 8:51 pm in reply to: Retrieving event data from Google tag API: A helpful guide

    It seems you’re on the right track with monitoring how often customers engage with certain offers on your site. However, there’s a slight snag in the method you’re trying to use. You see, you can’t use the ‘get’ method with gtag unless first you have set data.

    When you are logging an event, like offer_view, the data from that event is essentially outbound – it doesn’t sit around waiting to be fetched, so the get function won’t work here.

    Now, if you want to keep a track of how many times each offer_id gets viewed, then you might typically rest on some good old database work.

    Alternatively, if you are aiming to retrieve these numbers from Google Analytics 4 (GA4), then you would need to use the GA4 Data API. However, this isn’t always the best idea in the given scenario since, by doing so, the API information would be exposed in the Javascript.

    Going through GA4 could still be a useful step to store data and fetch it later on, though, especially if done securely with a 3rd party.

    If you decided you do want to get the data from GA4 Data API, you would provide the following:

    `javascript
    Dimension : customEvent:offer_id
    Metrics : event_count
    Filter : event_name = ${The event with offer_id}
    `

    There are plenty of resources available to help get this set up, such as the following GA4 guides:

    – [GA4 Data Basics](https://developers.google.com/analytics/devguides/reporting/data/v1/basics)
    – [GA4 Data API Schema](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema)

    Before proceeding with such steps, you’ll want to verify that offer_id is set as an event parameter in your GA4 report.

    That should provide you with everything you need to get started, and hopefully help your business leap towards its next major development. Keep up the great work!

  • Aaron

    Administrator
    18 June 2023 at 8:06 pm in reply to: Maximizing data completeness for high-cardinality reports in GA4 API

    It sounds like you’re having some issues with GA4’s Data API. It’s still new and in its testing phase, and while it does currently sample more data than the old Core Reporting API, there’s no word yet on when they’ll fix these issues. Hopefully, they’ll make improvements soon!

  • Yes, it is common to see a discrepancy between the ecommerce purchase data in GA4 and the actual database record, but the usual range is around 10%.

    Adblockers are a major reason for this. Depending on your audience, the percentage of users who use adblockers can significantly vary, hence blocking your tracking. For example, technical or savvy users are more likely to use adblockers, which could cause up to 50% difference in some extreme instances.

    Another possible reason is issues with tracking implementation. If not done correctly, tracking can either over-report or under-report conversions.

    Lastly, the GA4 interface itself is not always 100% reliable when it comes to data access. So, it’s always good to cross-check using other tools if you’re comfortable with them, like BigQuery SQL. This way, you can confirm that what you’re seeing in GA4 is truly reflective of the data. This isn’t necessarily super difficult, but like everything, it requires a bit of practice.

  • Aaron

    Administrator
    27 May 2023 at 5:15 pm in reply to: Converting a GA4 Event's float parameter to a STRING value for sending

    Hey there! It seems like you’ve stumbled upon one of those tricky things with Google. They’ve designed it to automatically interpret numbers as numerical values, not strings, even if you’ve tried converting them with something like the .toString() method.

    A workaround that’s been found, which is a bit subtler than adding a letter to the ID, is to just stick a ‘.’ at the end of your value. This forces Google to acknowledge it as a string, and not a number. So, instead of just {{client_id}}, you’ll be using {{client_id}}.

    Sure, it may not be the perfect solution, but it’s a pretty nifty way to make sure Google treats those IDs right!

  • Aaron

    Administrator
    3 April 2023 at 4:39 pm in reply to: Unavailable custom event data in GA4 using Google Analytics Data API v4

    The person is trying to gather data from their website by using Google Analytics Data API v4. They successfully created custom events, which are special user interactions with a website that can be tracked independently from a web page or a screen load. However, they’re encountering a problem where some of the events are not reflecting when accessing a particular link. They also found out that only events that have been labelled as ‘conversions’, which represent a completed activity on a website, are visible. They’re asking for help to solve this issue and wondering if they need to implement something else to see all of the website’s events.

  • Sure, here’s a simpler explanation. The issue you’re seeing is because the first row is counting all events – not just downloads. To fix this, you’ll want to add an extra filter. This filter should be set to specifically look at ‘file_download’ events. That way, your event count should only register a hit when there’s an actual download of the PDF file.