- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog Blog
- Support Desk Support Desk
Github repo: https://github.com/Tealium/integration-hybris
By default, the add on provides a comprehensive list of standard e-commerce variables. If these default values are not sufficient for your installation, you can extend the default page types as well as create new custom page types.
package com.tealium.dataconnector.hybris; import com.tealium.dataconnector.hybris.HybrisDataConverter.HybrisCustomDataConverter; import com.tealium.dataconnector.hybris.HybrisDataConverter.HybrisCustomPageTypeCustomData; import com.tealium.util.udohelpers.UDO; import com.tealium.util.udohelpers.exceptions.UDOUpdateException; public class TealiumCustomData implements HybrisCustomDataConverter { // ... add unimplemented methods of interface. }
@Override public UDO homePage(UDO udo) { return udo; }
@Override public UDO searchPage(UDO udo) { try { udo.setValue("page_name", "new search page name"); udo.setValue("custom_key", "custom_value"); } catch (UDOUpdateException e) { e.printStackTrace(); } return udo; }
public class TealiumCustomData implements HybrisCustomDataConverter { private static Map<String, HybrisCustomPageTypeCustomData> customPagesMap; @Override public Map<String, HybrisCustomPageTypeCustomData> getHybrisCustomPageTypes() { return customPagesMap; } //... other methods @Override public void addCustomPages() { if (customPagesMap == null){ customPagesMap = new HashMap<>(); } customPagesMap.put("custom_one", new HybrisCustomPageTypeCustomData(){ @Override public UDO getCustomDataUdo(UDO udo) { try { udo.setValue("page_name", "custom page 1"); udo.setValue("custom_page1_key", "custom value"); } catch (UDOUpdateException e) { e.printStackTrace(); } return udo; } }); customPagesMap.put("custom_two", new HybrisCustomPageTypeCustomData(){ @Override public UDO getCustomDataUdo(UDO udo) { try { udo.setValue("page_name", "custom page 2"); udo.setValue("custom_page2_key", "custom value"); } catch (UDOUpdateException e) { e.printStackTrace(); } return udo; } }); } }
Rebuild and restart hybris.
- sudo ant all
- sudo ./hybrisserver.sh
All Pages
page_name | Contains a user-friendly page name |
site_region | Includes values for region or localized version, e.g. en_US |
site_currency | Contains the currency shown on site, e.g. USD |
page_type | Contains a user-friendly page type, e.g. cart page |
Search Page
search_results | Contains the number of results returned with a search query |
search_keyword | Contains the search query conducted by user |
Category Pages
page_category_name | Contains a user-friendly category name, e.g. appliances |
Product Page
product_id | Contains product ID(s); multiple values should be comma-separated |
product_sku | Contains product SKU(s); multiple values should be comma-separated |
product_name | Contains product name(s); multiple values should be comma-separated |
product_brand | Contains product brand(s); multiple values should be comma-separated |
product_category | Contains product category(s); multiple values should be comma-separated |
product_subcategory | Contains product subcategory(s); multiple values should be comma-separated |
product_unit_price | Contains product unit price(s); multiple values should be comma-separated |
Cart Page
product_id | Contains product ID(s); multiple values should be comma-separated |
product_sku | Contains product SKU(s); multiple values should be comma-separated |
product_name | Contains product name(s); multiple values should be comma-separated |
product_brand | Contains product brand(s); multiple values should be comma-separated |
product_category | Contains product category(s); multiple values should be comma-separated |
product_subcategory | Contains product subcategory(s); multiple values should be comma-separated |
product_unit_price | Contains product unit price(s); multiple values should be comma-separated |
product_quantity | Contains product quantity(s); multiple values should be comma-separated |
Order Confirmation
order_id | Contains the order or transaction ID |
order_subtotal | Contains the order payment type |
order_payment_type | Contains the order payment type |
order_total | Contains the order total value |
order_discount | Contains the order discount (if any) |
order_shipping | Contains the order shipping value |
order_tax | Contains the order tax amount |
order_currency | Contains the currency associated with the transaction, e.g. USD' |
order_coupon_code | Contains the order coupon code |
order_type | Contains the order/cart |
product_id | Contains product ID(s); multiple values should be comma-separated |
product_sku | Contains product SKU(s); multiple values should be comma-separated |
product_name | Contains product name(s); multiple values should be comma-separated |
product_brand | Contains product brand(s); multiple values should be comma-separated |
product_category | Contains product category(s); multiple values should be comma-separated |
product_subcategory | Contains product subcategory(s); multiple values should be comma-separated |
product_unit_price | Contains product unit price(s); multiple values should be comma-separated |
product_quantity | Contains product quantity(s); multiple values should be comma-separated |
customer_email | Contains the customer email |
Customer Info Page
customer_name | Contains the customer username |
customer_email | Contains the customer email |
gender | Contains the customer gender based on salutation |
Copyright All Rights Reserved © 2008-2022