Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Properties - Question #62

Closed
FabianoLothor opened this issue Jul 3, 2023 · 1 comment
Closed

User Properties - Question #62

FabianoLothor opened this issue Jul 3, 2023 · 1 comment
Labels
question Further information is requested

Comments

@FabianoLothor
Copy link

FabianoLothor commented Jul 3, 2023

Hello, first of all, thank you for the great library.

I've a few questions about the user properties, is anyone able to help me?

  1. GA4 docs isn't very clear about the user-properties, do you know if I can set any key-value there or they've specific user-properties that I can use?
  2. I know that I need to set up those user properties in the GA4 configurations, do you know what happens if I send a request with a user property that wasn't previously set up there? Will that still work fine? And the opposite, if I don't send an expected key?
  3. Do you've any links that might help me to understand better how to use the user-properties? The ones that I found in the GA4 docs weren't useful to understand certain detail.
@aawnu
Copy link
Owner

aawnu commented Jul 3, 2023

Thank you for trying it out, it was originally developed for a specific business purpose.

The user properties are meant for users (not sessions). Let's use a webshop/e-comm example.

You have a client (visitor) that enters your website and browses, this is a simple session where you can see what the client looks at, puts in a basked, etc.

Later that client creates an account and ALSO becomes a user. You want to put some specific information to that user, that might be represented throughout the upcoming sessions.

Flow:

visits -> get session -> client id
view page
view page
signup -> set user id
buys something -> sets user property "first_purchase: now()"

visits -> get session -> client id && is logged in -> set user id
buys something worth €500 -> set user property "is_big_spender: yes"

Analytics:

I am not a marketer, so I am not very strong in the actual Analytics interface, but my understanding is that you should then be able to filter on "first_purchase" and/or "is_big_spender" variables when making a custom report on users.

@aawnu aawnu added the question Further information is requested label Jul 3, 2023
@aawnu aawnu closed this as completed Jul 3, 2023
@aawnu aawnu pinned this issue Jul 3, 2023
@aawnu aawnu unpinned this issue Jul 3, 2023
Repository owner locked as resolved and limited conversation to collaborators Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants