Skip to content

Page

The Page class holds information for attrib_page, and allows some extra functionality.

create_event(event_id, revenue=0, currency='GBP', transaction_id='')

This create's an Event with the relevant params passed in. event_id is required and should come from the pre-defined values in ClientEvent

Returns an Event class so you can add EventDetails

v = Visitor(VisitDefaults.FIRST_VISIT.value, VisitDefaults.LAST_VISIT.value, account_token=AccountDefaults.TOKEN)   
v.create_visit('www.google.com', Pattern.SEO.value, 1)\
    .create_page(ClientPage.PRODUCTVIEW.value)\
    .create_event(ClientEvent.PRODUCTVIEW.value)\
    .insert(connection)

create_label(label_config, created=None):

See Visit.create_label