Skip to content

v2 Sending Events

padams edited this page Nov 27, 2026 · 1 revision

This is the documentation for OWA 2.0, which has not been released yet. 2.0 pages start at v2 Home. For the current release, see Invocation.

Events reach OWA from one of two clients:

Client Use it for
The tracking tag Web pages. The tracker records page views, clicks, forms, scrolling and the rest by itself
The OWA PHP SDK PHP applications. Page views, actions and purchases: see the table below

Both send their events to log.php. Requests built by hand are not supported: the wire format is the tracker's, and it changes with the tracker. What happens to a request once it arrives is on Tracking Event Pipeline.

The tracking tag

Paste the Profile's tag into your pages. It loads the Profile's tracking bundle, which holds the tracker and the Profile's tag settings. See Tracking Tag for the tag, and Javascript Tracker for the commands a page can queue.

The OWA PHP SDK

The OWA PHP SDK sends owa_-prefixed long names and dotted event names such as base.page_request, which log.php translates. Against 2.0, page views, purchases and actions are recorded; feeds and delayed transactions are not. Its REST client works with an application password.

The table below is based on the SDK's source as of October 2026. It has not been tested against a 2.0 server.

SDK call It sends On 2.0
trackPageView() base.page_request Recorded as page_view, with the visitor and session ids, the session and visitor flags, prior sessions, page URL, title, referrer and first-seen times. Campaign tags are read from the page URL
setPageTitle() page_title Recorded
setPageType() page_type Dropped. OWA's equivalent is the content group (p_cg)
setUserName() user_name Recorded as the user property user_name
setUserEmail() user_email Dropped
setCustomVar() cv1 to cv5 Recorded, under the variable's name
setProperty( name, value ) name Dropped, unless name is an OWA property or starts with eps_, epn_, vps_ or vpn_
trackEvent() with a TrackingEvent named for a custom event That name Recorded as a custom event. Its properties need the eps_ or epn_ prefix
trackAction() track.action Recorded as a custom event named from the action, with group, label and value as its properties
trackSyndicationFeed() base.feed_request Refused. OWA has no feed tracking
addTransaction() and trackTransaction(), no line items ecommerce.transaction Recorded as purchase. Revenue is the total less tax and shipping. City, state and country are dropped
The same with addTransactionLineItem() Line items as bracketed keys (owa_ct_line_items[0][li_sku]=…) Recorded as purchase. Each line item keeps the SDK's own keys (li_sku, li_product_name, …); the tracker's are item_id, item_name, price and quantity
addTransaction() with a session id, for a delayed transaction A stateless event with original_session_id Dropped. It carries no visitor id or session id, and OWA does not read original_session_id
trackStatelessEvent() The event's own properties and the site id Dropped unless the event sets visitor_id and session_id itself
The trafficAttributionMode and campaignAttributionWindow options An attribs property Dropped. Attribution is worked out by the server: see Channels and Attribution
createSites() with app_password Authorization: Bearer Works: listSites() and addSite() call GET and POST /base/v1/sites. See Application Passwords
createSites() with api_key and auth_key X-API-KEY and X-SIGNATURE Refused with a 401

The SDK forwards the visitor's user agent, language and address as request headers, as log.php expects. Under spam detection Strict, a request that claims a current browser and lacks the Sec-Fetch-Mode header a browser sends scores 5.0 (NO_FETCH_METADATA), and the default threshold blocks it. Use Normal with the SDK. See Spam Detection.

Changes from 1.x

1.x 2.0
The tag loaded the generic owa.tracker.js The tag loads the Profile's tracking bundle. A 1.x tag still works
owa_-prefixed long names on the wire Short wire keys. The old names are still read, and page_url, nps and email_address are read as page_location, num_prior_sessions and user_email
1.x event names base.page_request, dom.click and ecommerce.transaction become page_view, click and purchase; track.action becomes a custom event (see Custom Events); base.feed_request, dom.stream and any other dotted name are refused
— A beacon with no _v, from a cached 1.x tag or the SDK, is URL-decoded a second time, as 1.x did
The PHP SDK sent page views, actions, feed requests and transactions Page views, purchases and actions are recorded. See the table above
Events could be posted to log.php by hand Not supported: send them with the tracker or the SDK

Clone this wiki locally