-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels