Forum Replies Created

  • The error message indicated with code 429 and status ‘RESOURCE_EXHAUSTED’ suggests that your application has reached a rate limit restricting the number of API calls you can make in a certain period of time. If your application is making several requests to the API in quick succession, this could be the cause of the error. You may need to introduce delays between your requests to avoid hitting the rate limit. The “property is denied access to the API” might mean that you’re trying to access a Google Analytics property to which you don’t have the necessary access permissions or it is not enabled for API access. You should contact the owner of the Google Analytics property or Google analytics support for further assistance.

  • Raj

    Member
    6 July 2023 at 9:04 pm in reply to: Understanding PHP Implementation of the Google Analytics API

    You may not be seeing the newly created property in the propertySummary list immediately due to caching or delay in update on the Google servers’ end. You can try to fetch the list again after a delay. If you’re still unable to see the new property, check your code to ensure that it’s correctly creating and saving the new property.

  • It sounds like your code might be getting tripped up when it tries to draw data for the ‘usergender’ dimension and doesn’t find anything. Make sure there are actually data available for that dimension. If everything seems alright there, there might be a bug in your PHP script, so double-check your syntax and logic in the code.

  • Absolutely, happy to provide some guidance!

    In GA4 you have to use the analysis hub to access this information. Here’s how you can do it:

    1. Launch Google Analytics and select your property.
    2. In the left sidebar, navigate to ‘Explore’.
    3. In the Analysis hub, choose the ‘Free Form’ analysis type available.
    4. Here, you would use the ‘Rows’ dimension for ‘event_name’ and within the ‘Values’ you would select the specific events such as page_view, scroll, or session_start etc.
    5. If you need to see the page_path, you can add that in the ‘Rows’ section too where it shows event parameters as Event Parameter: page_location which is equivalent to page_path in Universal Analytics (UA).

    Do keep in mind that GA4 is quite different from UA in terms of event tracking and you may not see everything in the same way. Regarding click events, they show up as ‘engagement’ in GA4 as opposed to clicks in UA. If they are not showing up, it might be because of GA4 setup.

    To ensure typical clicks are automatically tracked in GA4, you need to enable enhanced measurement of events for your property. You can find useful information on this topic in the link I shared earlier.

    Remember, it will take a bit of practice to become familiar with GA4. Good luck with your exploration!

  • Raj

    Member
    28 April 2023 at 8:18 am in reply to: What is the source of my Google Analytics tracking?

    The tracking code you’re seeing is definitely from Google Tag Manager (GTM). It’s possible the Universal Analytics (UA) data is being relayed from GTM itself or directly from your website. You can verify this by checking the ‘Initiator’ in your devtool’s Network tab after searching the UA property id. If you share a screenshot, we can help further. Or alternatively, you might need to reach out to your developers to sort this out. It seems UA tracking is hard-coded in your ‘loadGA.js’ file.

  • In simple terms, GA4 does understand the connection between events with just the user_pseudo_id and those with both IDs. They’re identified as one user’s actions. When you set a permanent user_id, GA doesn’t treat them as different users; rather, it tracks the journey of the same user. As for lost events in your funnel, it could be a result of several factors like web page unloading before GA can send data or if users have ad blockers enabled. Better debugging could help you figure it out.

  • Raj

    Member
    18 March 2023 at 7:37 pm in reply to: Troubleshooting: No data from subdomains in GA4

    There could be a number of reasons why you’re not seeing the expected data. Here are some possible situations you might need to check.

    The first thing to verify is whether the GA4 tracking code is properly installed on both of your subdomains. This is the most common reason for not seeing any data. You can check the source code of your pages or use tools like Google Tag Assistant to verify this.

    Secondly, it’s also possible that you’ve set up some filters that are excluding the data from these subdomains. Be sure to check any filters you’ve set up in your GA4 property to ensure that they’re not inadvertently blocking data.

    Lastly, keep in mind that there is usually a delay of up to 24 hours before data start showing up in your reports. This is particularly true when you first set up a new property or view. So if you’ve recently made these changes, it might just be a matter of waiting a little bit longer.

    Remember too that GA4 uses different data models than Universal Analytics, so your subdomain traffic might be located in different report sections. If there are specific user interactions on your sub-domains that you’d like to track, you may need to set up custom events for these.

  • Raj

    Member
    24 January 2023 at 8:22 pm in reply to: Maximizing Security: Integrating Google Analytics/Google Ads with CSP

    Sure, I’d be happy to explain it in a simpler way. You see, I found an article that suggested moving Google Analytics’ code to its own file. The file would live on a domain that my Content Security Policy (CSP) already trusts, such as my primary website.

    So, I did just that. I took Google’s script, which was initially meant to live directly in my website’s code. I downloaded that script and added a few more lines of code that Google had provided me. Then, I saved this extended script as its own separate file on my website.

    To ensure that my website would use this new file, I added a line of code within the head section of my site that references these analytics.

    To make sure everything was secure, I updated my CSP policy as suggested in the article.

    Finally, I connected Google Analytics 4 to Google Ads using a dedicated feature and set up a conversion goal on Google Ads. A small tip: you need to switch Google Ads to Expert mode for this to work.

    And voila! Everything was up and running smoothly. I could see my stats on Google Analytics and monitor conversions on Google Ads. Simple as that!

  • You seem to have built your data frame correctly, but the problem appears when setting up the dimension filter. The “data” in “data has to be uniquely named” refers to the data input used in the dimension filter. You’ve specified ‘city’ twice in the filter which the function doesn’t like. Try altering the syntax, possibly by using a different function or encapsulating the two cities in a single command.