Skip to main content

BIK Tracker

Installation and Usage​

Verify that the BIK tracker script is installed and enabled in your Shopify store before calling any methods on the BIK object.

Auth

Overview​

The BIK object is exposed in the browser context and provides methods for registering events and user properties.

Methods​

registerEvent(source, event, customerData)​

Logs and tracks specific events that occur during the customer journey on your Shopify store. Each event is recorded with its associated properties and customer identification data within BIK for analysis.

  • Parameters:
    • source (string): The origin of the event (e.g., 'website').
    • event ({ name: string, properties: object }): An object containing the event name and its associated properties.
    • customerData ({ email?: string, phoneNumber?: string, shopifyCustomerId?: string }): Customer identification details.
BIK.registerEvent('origin-website', { name: 'checkout_started' , properties : {cartSubtotal : 200, discountCode : 'MEGASALE#20', totalAmount : 150}}, { email: 'tracker-usd@gmail.com' });

registerUserProperties(source, userProperties, customerData)​

Stores customer profile attributes such as name, age, and other relevant details within BIK for comprehensive data management and segmentation.

  • Parameters:
    • source (string): The origin of the user properties (e.g., 'website').
    • userProperties ({}): User properties object.
    • customerData ({ email?: string, phoneNumber?: string, shopifyCustomerId?: string }): Customer identification details.
BIK.registerUserProperties('origin-website', {  name : 'Tracker Clovis', age: 30 }, { email: 'tracker-usd@gmail.com' });