# Trace API Examples (JavaScript)

Trace Type: Other

<script type="text/javascript">
       _edrone.app_id = '51a97611a3430';
       _edrone.version = '1.0.0';
       _edrone.action_type = 'other';
       _edrone.platform_version = '3.1.26';
       _edrone.platform = 'custom';
</script>

Trace Type: Product view

<script type="text/javascript">
       _edrone.app_id = '51a97611a3430';
       _edrone.version = '1.0.0';
       _edrone.action_type = 'product_view';
       _edrone.platform_version = '3.1.26';
       _edrone.platform = 'custom';
       _edrone.product_skus = 'NL1975286';
       _edrone.product_ids = '12';
       _edrone.product_titles = 'Sorel Women\'s shoes Glacy';
       _edrone.product_images = 'https://demo-store.edrone.me/img/p/4/5/45-large_default.jpg';
       _edrone.product_urls = 'https://demo-store.edrone.me/index.php?id_product=12&controller=product';
       _edrone.product_category_ids = '2~3~4';
       _edrone.product_category_names = 'Main~Shoes~Women\'s shoes';
       _edrone.product_availability = '1';
</script>

Trace Type: Add to cart

<script type="text/javascript">
       _edrone.app_id = '51a97611a3430';
       _edrone.version = '1.0.0';
       _edrone.action_type = 'add_to_cart';
       _edrone.platform_version = '3.1.26';
       _edrone.platform = 'custom';
       _edrone.product_skus = 'NL1975286';
       _edrone.product_ids = '12';
       _edrone.product_titles = 'Sorel Women shoes Glacy';
       _edrone.product_images = 'https://demo-store.edrone.me/img/p/4/5/45-large_default.jpg';
       _edrone.product_urls = 'https://demo-store.edrone.me/index.php?id_product=12&controller=product';
       _edrone.product_category_ids = '2~3~4';
       _edrone.product_category_names = 'Main~Shoes~Women shoes';
</script>

Trace Type: Order

<script type="text/javascript">
       _edrone.app_id = '51a97611a3430';
       _edrone.version = '1.0.0';
       _edrone.action_type = 'order';
       _edrone.platform_version = '3.1.26';
       _edrone.platform = 'custom';
       _edrone.email = 'john.doe@edrone.me';
       _edrone.first_name = 'John';
       _edrone.last_name = 'Doe';
       _edrone.gender = 'M';
       _edrone.birth_date = '1995-02-28';
       _edrone.subscriber_status = '1';
       _edrone.product_skus = 'NL1975286|NL2075286';
       _edrone.product_ids = '12|13';
       _edrone.product_titles = 'Sorel Women shoes Glacy|Sorel Women shoes Glacy Explorer Shortie';
       _edrone.product_images = 'https://demo-store.edrone.me/img/p/4/5/45-large_default.jpg|https://demo-store.edrone.me/img/p/4/7/47.jpg';
       _edrone.product_urls = 'https://demo-store.edrone.me/index.php?id_product=12&controller=product|https://demo-store.edrone.me/index.php?id_product=13&controller=product';
       _edrone.product_category_ids = '2~3~4|2~3~4';
       _edrone.product_category_names = 'Main~Shoes~Women shoes|Main~Shoes~Women shoes';
       _edrone.product_counts = '1|3';
       _edrone.order_id = '4321';
       _edrone.country = 'UK';
       _edrone.city = 'London';
       _edrone.base_currency = 'GBP';
       _edrone.order_currency = 'GBP';
       _edrone.base_payment_value = '671.50';
       _edrone.order_payment_value = '671.50';
</script>

Trace Type: Subscribe

<script type="text/javascript">
       _edrone.app_id = '51a97611a3430';
       _edrone.email = 'jonh.doe@edrone.me';
       _edrone.gender = 'M';
       _edrone.birth_date = '1995-02-28';
       _edrone.version = '1.0.0';
       _edrone.action_type = 'subscribe';
       _edrone.platform_version = '3.1.26';
       _edrone.platform = 'custom';
</script>