Skip to content

Other event codes

Before implementing the event codes, the pixel embed script should be added on every page of the website. Instruction

Event code template

<script>
  wph('track', 'event_name', { 
    content_name: 'content_name', other_parameters });
</script>

The parameters and values of event_name, content_name, and other_parameters are detailed in:
Available events and required parameters

Examples

View

<script>
    wph('track', 'ViewContent', { content_name: 'View' });
</script>

LandingPage

<script>
    wph('track', 'ViewContent', { content_name: 'LandingPage' });
</script>

Helper event - InputForm

<script>
    wph('track', 'ViewContent', { content_name: 'InputForm' });
</script>

Conversion event - Lead

<script>
    wph('track', 'Conversion', { content_name: 'Lead' });
</script>

Conversion event – PriceListEnd

<script>
  wph('track', 'Conversion', {
    content_name: 'PriceListEnd',
    currency: 'CURRENCY',
    contents: [
      {
        id: 'PRODUCT_ID1',
        name: 'PRODUCT_NAME1',
        category: 'PRODUCT_CATEGORY1',
        price: PRODUCT_PRICE1
      },
    ],
  });
</script>