Forum Replies Created

  • The “userId” should typically be set as a User Property as it relates to the user’s identity, which is persistent between sessions. The User Properties category is generally for parameters that are related to user identities and would remain consistent across multiple events or sessions for the same user.

    On the other hand, the email subscription variable should be included in the Event Parameters. This is because the event of a person signing up for email updates is linked to a specific action they took at a particular point in time, which is what the Event Parameters category is for. So in a nutshell, the ‘create_account’ tag should include the userId in the User Properties and the email subscription variable in the Event Parameters.

  • Aiden

    Member
    29 June 2023 at 8:39 pm in reply to: Analyzing GA4 custom event parameter not updating in UI

    It seems like you’re doing everything right when you’re sending the “ebook” custom event with the “titolo” parameter to Google Analytics 4. Strangely though, your custom dimension is still coming up as “not_set” despite showing up just fine in the real-time report. So, don’t worry – it’s not just you finding this a little odd!

  • Aiden

    Member
    22 June 2023 at 8:25 am in reply to: Issues with GA4 and Tag Manager for product tracking

    The issue of Google Analytics not recognizing your ‘items’ array could come from a variety of potential issues. It might be due to how the array’s set up, as Google Analytics often requires specific data configurations. Misalignment with these expectations could cause the problem you’re experiencing. Also, there could be issues in the way you’re calling the items within your analytics tag set-up in Google Tag Manager. Another potential situation could be that your array data is not being pushed correctly onto the data layer. Therefore, even though you can see the array in Google Tag Manager, Google Analytics may not be able to access it. I’d recommend checking the array’s configuration and your data layer integration as potential points of investigation.

  • Aiden

    Member
    19 June 2023 at 9:48 am in reply to: Distinguishing the Value Variable in GA4 Ecommerce

    Yes, you’re right. The “value” variable in Google Analytics 4 (GA4) ecommerce is not precisely the same as “price”. It generally holds a monetary impact related to an event, which may differ depending on context. For instance, in the contexts of adding/removing an item to/from a wishlist, or removing an item from the shopping cart, “value” represents the monetary worth of the action. However, for “add_to_cart” event, the price and quantity of the item should be specified within the “items” array instead of placing it in the “value” field. Understanding and properly using this variable helps businesses track their customer behavior on their ecommerce site correctly, providing valuable data to optimize for higher conversions and sales.

  • Alright, so from your description, it sounds like you are already halfway there. You’re using the hostname dimension, right? That’s going to allow you to tell apart hits coming from different subdomains, so that’s all fine and dandy. Don’t worry, the Full URL dimension should cover your needs as well.

    Now, you might be thinking of using a custom dimension to sort this out. But remember, the number of these are limited, so you need to use them sparingly. Let’s not jump at that solution just yet.

    It seems like you’re expecting there’s an issue, but you haven’t exactly told me what it is. Now if you really want to make sure everything’s being captured the right way, what you can do is check out the network requests your site is sending to Google’s collect endpoint. Pay close attention to the dl field – you want to see that it’s reflecting the full URL appropriately. However, don’t stress about it unless you’re noticing something odd in your data. After all, the dl field is generally the same as window.location.href and isn’t often changed.

  • Of course, in order to confirm your assumption about the ‘piiRegex’ variable, I would need to actually see the part of your code that defines and uses it. However, based on your description, it does sound like it could be a regular expression designed to match the pattern of an email address. The reason the substitution only works when the pattern matches a real email is likely because the ‘piiRegex’ looks for patterns that follow a specific structure – the structure of an email address. As for the rest of your code, without being able to see it inside the brackets ‘[Insert Code]’ in your post, I unfortunately can’t provide any specific feedback or confirmation.