Forum Replies Created

  • Benjamin

    Member
    13 June 2023 at 6:47 am in reply to: Implementing Time-Based Event Triggers in GTM

    Sure thing! You can definitely do this using Google Tag Manager (GTM) in combination with a timer trigger. This will allow you to send events to Google Analytics 4 (GA4) based on specific time intervals. Just ensure that you set a trigger every minute after the initial 4 minutes to stick to your timeline. Happy tagging!

  • It seems like you are experiencing some difficulties trying to run a Python script using the service account you created for the Google Analytics Data API. You’ve followed the necessary steps to create and authenticate the service account, and you’ve given it the required permissions. However, the script fails to execute and produces a ‘Deadline Exceeded’ error. You’ve attempted to resolve this issue by testing various tips you found, but the problem persists.

    You also attempted to use a curl command to retrieve your API data by using an access token generated by gcloud, but you were denied due to insufficient authentication scopes error. In other words, the access token you obtained doesn’t have sufficient permissions to access the required resource.

    Whether the service account works or not may depend on other factors. There may be an issue in the way the Python script is interacting with the service account, or there might be an error in how the service account’s permissions are set up in the Google Cloud Console. It seems like the access token is not being granted the correct scopes when it’s issued.

    Remember, when you run your Python script or command, the environment must have the correct permissions to access your Google Analytics Data. If you’ve changed permissions in the console, ensure you update your local environment to reflect those changes. To sum up, the issue you’re experiencing is likely due to an authentication or permissions error.

  • Sure, you should check the variable holding the brand. If it is “undefined” or “null”, replace it with an empty string “”. You can do this check with an if-statement or a ternary operator. If it’s still not working, sharing your code snippet would help in giving more specific advice.

  • Benjamin

    Member
    3 February 2023 at 3:34 am in reply to: The ramifications of changing Google Analytics 4 event names

    Sure, nothing to worry about. When you change the name of something in GA4, the historical data with the old name is not affected. It just stays as it is. So, all the stuff tied to the old name in your past events still exists. You won’t lose any of your old data.

  • Benjamin

    Member
    8 December 2022 at 1:11 am in reply to: Creating Custom Audiences Based on Events in Google Analytics 4

    Sounds like a bummer, mate! It seems you’re doing all the right things but the issue could be due to how Google Analytics processes data. GA4 processes data in batches which can sometimes cause a delay. They use a complex method to calculate the audience which even considers activity outside your selected event. Just hang tight, possibly give it a few hours or a day, and check back again.

  • To tie your custom dimension ab_page_image into Shopify, you would need to modify the Google Analytics tracking script on your Shopify website. This modified script should send the ab_page_image value to Google Analytics whenever a relevant event occurs. The changes would need to be put in the Shopify system either in the form of Liquid code in your Shopify theme, or through additional JavaScript code based on where you’re collecting the ab_page_image values from. For instance, if ab_page_image is a metafield associated with a product, you would retrieve it using Shopify’s Liquid templating language and pass this value into the GA4 event being sent. A developer familiar with both Shopify and GA4 should be able to help set this up for you.