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

Event parameter value cannot exceed 100 characters. #47

Open
anuj-scanova opened this issue Apr 5, 2023 · 0 comments
Open

Event parameter value cannot exceed 100 characters. #47

anuj-scanova opened this issue Apr 5, 2023 · 0 comments

Comments

@anuj-scanova
Copy link

I'm creating page_view event and needs to page user agent data.

from ga4mp import GtagMP

ga4_tracker = GtagMP(api_secret=secret_key,measurement_id=google_tracking_id,client_id=client_id)
page_view = ga4_tracker.create_new_event(name='page_view')
page_view.set_event_param('page_location', 'https://example.io/abcd')
page_view.set_event_param('user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36')

But it is giving error

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/ga4mp/event.py", line 22, in set_event_param
    raise ValueError("Event parameter value cannot exceed 100 characters.")
ValueError: Event parameter value cannot exceed 100 characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant