Forum Replies Created

  • Moving to Google Analytic 4 (GA4), there is no direct equivalent setDomainName as in Universal Google Analytics. The new GA4 has a unique data model and configuration settings. Also, the gtag() function does not have a _setDomainName method that’s why you’re getting an error.

    In GA4, you can configure your domain at a property level through the data streams. You need to visit the GA4 property settings essentially. Within settings, select ‘Data Streams’ (either Web, Android App, or iOS app) and you can set up your domains. This makes it unnecessary to manually set the domain in your tracking code.

    For more advanced domain configuration needs, you might need to consider Google Tag Manager or custom tracking parameters. It’s better to refer to the GA4 official documentation to understand how to properly configure your properties for multiple or specific domains.

  • Logan

    Member
    24 June 2023 at 5:16 am in reply to: Sharing or Exporting Custom Report Templates in GA4

    Yes, you can share the template of your custom reports in GA4 (Google Analytics 4) without including any data. GA4 allows you to share your Explorations, which are basically your custom reports, through a feature called template linking. This way, you can share the template link with others and they can use this in their own GA4 properties. This takes away the need for them to build the same reports from scratch as all the configurations like metrics, dimensions and segments would already be in place. Remember that this feature shares only the configuration of the report and not your data.

  • Logan

    Member
    4 June 2023 at 3:30 pm in reply to: Segment GA4 conversions based on associated events

    Yes, it is possible to use GA4 and Data Studio to break down reports by specific conversions. In Google Analytics 4 reports, you can analyze each individual event in the event count metrics. This allows you to observe the different conversion events in separate reports, instead of just seeing the total sum in one place. Similarly, in Data Studio, you can also split reports by events to avoid aggregating all conversion events. Steps include connecting with your GA4 property and choosing the desired events for separate analysis. Keep in mind, understanding the details of these features requires a certain level of familiarity with both tools. It might not provide as much detailed customization as previous versions and might necessitate extra time to adjust to the new functionalities for mastering the analysis process. But, it’s worth mentioning that Google is constantly working on updates and improvements to make GA4 more user-friendly and versatile.

  • It sounds like you’re having a tough time with this, huh? Unfortunately, yes, it’s true that GA’s filters don’t apply to data sent via Measurement Protocol. So, you can’t directly filter out internal traffic for such data using GA’s standard filter functions. Those “No data currently available” messages can be pretty annoying!

  • The compatibility issue you are facing is due to the nature of GA4’s data model which is event-based, compared to the session-based model of Universal Analytics. This affects the ability to mix dimensions and metrics like you were able to do in GA3. Specifically, the issue arises when trying to mix event-scoped dimensions (like itemId and itemName) and user-scoped dimensions (like source). Workarounds may involve creating custom dimensions in GA4, or modifying your approach to collecting and analyzing data, keeping in mind the event-based structure of GA4. Additional requests to GA4 API might be unavoidable due to the change in data model structure.

  • Logan

    Member
    20 May 2023 at 11:46 am in reply to: How to connect to the Google Analytics 4 API using PHP

    It seems like your service account doesn’t have the right permissions, despite you using admin permission. Make sure you’ve added the client_email from your service account to your Google Analytics with correct permissions. Also, check if your view’s ID is correct. If all else fails, try starting the process from scratch to catch any unseen errors.

  • Logan

    Member
    17 May 2023 at 7:08 am in reply to: Trouble with GTM Ecommerce Conversion Tracking in GA4

    Hey there! It looks to me like the trigger is waiting for a add_to_cart datalayer event. What this means is that you need your developer to create a datalayer event with the ecommerce item when a user successfully performs an add_to_cart event. There are useful details about all ecommerce events and their datalayers on the Google Developers site [here](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm).

    To give you a sense of your progress, you’ve already done half the job – you’ve set up the Google Tag Manager to GA4, and it’s now just waiting for the datalayer from the developer.

    Here’s an image that might help you grasp the overall process of tracking:

    In this image, the green part is what you’ve already completed. Now it’s a matter of you exploring the following:

    A. Has your developer implemented the Datalayer code? If yes, is there anyone who could verify it? B. Or perhaps your developer didn’t quite understand the concept and purpose of the Datalayer code, in which case, they might need to revise when the code needs to be triggered.

    Overall, it seems like you’re on the right track, just a few more steps to go!

  • Logan

    Member
    23 March 2023 at 1:28 am in reply to: Guide to integrating Google Analytics 4 with Vue.js 2

    Sure, I can certainly break that down for you!

    You’ve actually got a solution already: vue-gtag version 1.16.1 will work with GA4 in Vue2. You can install it easily in your terminal by typing npm install vue-gtag@1.16.1.

    After it’s installed, you need to configure vue-gtag in your main.js:

    First things first, import Vue, VueGtag, and your router (assuming that you already implemented a router).

    Then, in the same main.js file, you use Vue.use to call VueGtag with your personal analytics ID where ‘G-XXXXXXXXXX’ is. The 'send_page_view': false parameter ensures a page view isn’t automatically sent when a route is navigated to.

    Here’s how the setup looks:

    `javascript
    import Vue from ‘vue’
    import VueGtag from ‘vue-gtag’
    import router from ‘@/router’

    // …

    Vue.use(VueGtag, {
    config: {
    id: ‘G-XXXXXXXXXX’,
    params: {
    send_page_view: false
    }
    }
    }, router)

    // …
    `

    Swap out ‘G-XXXXXXXXXX’ with your actual GA4 ID, and you’re all set!
    Keep in mind spaces or any irregular characters in your id might lead to errors, so double check your quotes and commas.

    Good luck, let me know if you have any other questions!

  • I believe your suspicions might be correct. It could indeed be due to the presence of the Custom Dimension named “price”. If it’s spelled and named identically to your price parameter within your ecommerce data, it can lead to confusion and conflicts which might be causing the problem. By archiving the custom dimension, you’ve made a good step towards troubleshooting the issue. On the other hand, the data type of the price value wouldn’t typically affect the plotting in GA4 Explorer. Google Analytics 4 is designed to understand numeric values, so it should interpret this properly as long as it’s named consistently. If the issue persists after the data has had sufficient time to populate after archiving the conflicting Custom Dimension, you may need to dive deeper into the GA4 config or your implementation to find the culprit.