Plugin Directory

Changeset 2433514


Ignore:
Timestamp:
12/07/2020 08:01:02 PM (5 years ago)
Author:
snapchatwoo
Message:

Update plugin to send item_ids on VIEW_CONTENT

Location:
snap-pixel-for-woocommerce/trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • snap-pixel-for-woocommerce/trunk/src/modules/snap-pixel/includes/function.php

    r2417365 r2433514  
    245245            <!-- VIEW_CONTENT Snap Pixel Event -->
    246246            <script>
    247                 snaptr('track', 'VIEW_CONTENT');
     247                snaptr('track', 'VIEW_CONTENT', {
     248                    item_ids: [ <?php echo wc_get_product()->id; ?> ]
     249                });
    248250            </script>
    249251            <!-- /VIEW_CONTENT Snap Pixel Event -->
Note: See TracChangeset for help on using the changeset viewer.