Skip to main content

Segmentify Integration

Send Hardal analytics events to Segmentify for personalized product recommendations and engagement campaigns.
Make sure to check the partner’s website and API documentation for the most up-to-date information and configurations.

Setup

1

Get Segmentify Credentials

Get your API Key and Data Center URL from Segmentify → Settings → Integrations
2

Add Destination

Go to Hardal dashboard → Marketing Destinations → “Add Destination” → Select “Custom API”
3

Configure Endpoint

{
  "endpoint_url": "https://[YOUR-DATA-CENTER].segmentify.com/add/events/v1.json?apiKey=[YOUR-API-KEY]",
  "request_method": "POST",
  "content_type": "application/json"
}
4

Add Headers

{
  "headers": {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Origin": "https://yourdomain.com"
  }
}
5

Set Event Format

Choose the appropriate format based on your event type:Page View Events:
[
  {
    "name": "PAGE_VIEW",
    "userId": "##user_id##",
    "sessionId": "##session_id##",
    "device": "##device_type##",
    "pageUrl": "##page.url##",
    "referrer": "##page.referrer##",
    "category": "##properties.page_category##"
  }
]
Product View Events:
[
  {
    "name": "PRODUCT_VIEW",
    "userId": "##user_id##",
    "sessionId": "##session_id##",
    "productId": "##properties.product_id##",
    "title": "##properties.product_name##",
    "category": "##properties.product_category##",
    "brand": "##properties.product_brand##",
    "price": "##properties.product_price##"
  }
]
Add to Cart Events:
[
  {
    "name": "BASKET_OPERATIONS",
    "userId": "##user_id##",
    "sessionId": "##session_id##",
    "step": "add",
    "productId": "##properties.product_id##",
    "quantity": "##properties.quantity##",
    "price": "##properties.product_price##"
  }
]

Segmentify Event Types

  • PAGE_VIEW - Page views
  • PRODUCT_VIEW - Product page views
  • BASKET_OPERATIONS - Add/remove from cart
  • CHECKOUT - Checkout steps
  • USER_OPERATIONS - Login, signup
  • CUSTOM_EVENT - Custom user actions

Available Variables

  • ##user_id## - User identifier
  • ##session_id## - Session identifier
  • ##device_type## - Device type
  • ##page.url## - Current page URL
  • ##page.referrer## - Referrer URL
  • ##properties.product_id## - Product ID
  • ##properties.product_name## - Product name
  • ##properties.product_category## - Product category
  • ##properties.product_brand## - Product brand
  • ##properties.product_price## - Product price
  • ##properties.quantity## - Item quantity
Create separate destinations for each event type to keep configuration organized.