Enhanced Ecommerce (UA)

5 years ago
It would be very nice if you can add tracking of coupon code and tracking abandonments...its very much required by my client.

Please update me when you add this. Accordingly client will decide whether to buy this plugin or not!
5 years ago
I did new release 1.09 and added support discount codes.

About transaction ID.
Plugin uses Order Id for this parameter.
5 years ago
Thanks please give me link for downloading it.
5 years ago
Download it from plugin's page (Download sample).

https://www.foxnetsoft.com/nopgoogleenhancedecommerce
5 years ago
Okay Thanks. I am downloading and using it and will track google analytics till tomorrow to see if coupon code shows up. If I face any problem will again contact you.

Thanks a lot once again.
5 years ago
Its not tracking shopping cart abandonment. Could you make that possible.
5 years ago
Also any idea in google analytics report under order coupon and product coupon it still shows Not set. Why
5 years ago
Product Level coupon is not passing properly -

I am using Product coupn AUG25

it shows like this
   "event": "ordercompleted",
    "ecommerce":     {
      "purchase":       {
        "actionField":         {
          "id": "29",
          "affiliation": "Online Store",
          "revenue": "4.49",
          "shipping": "0.00",
          "coupon": "AUG25"
        },
        "products":         [
          {
            "name": "Fabric Headpin",
            "id": "S002",
            "price": "4.49",
            "category": "Headpin",
            "quantity": 1,
            "productId": 2
          }


But I thnk it should show on product  -



dataLayer.push({
  'ecommerce': {
    'purchase': {
      'actionField': {
        'id': 'T12345',                         // Transaction ID. Required for purchases and refunds.
        'affiliation': 'Online Store',
        'revenue': '35.43',                     // Total transaction value (incl. tax and shipping)
        'tax':'4.90',
        'shipping': '5.99',
        'coupon': 'SUMMER_SALE'
      },
      'products': [{                            // List of productFieldObjects.
        'name': 'Triblend Android T-Shirt',     // Name or ID is required.
        'id': '12345',
        'price': '15.25',
        'brand': 'Google',
        'category': 'Apparel',
        'variant': 'Gray',
        'quantity': 1,
        'coupon': ''                            // AUG25 should show here.
       },
       {
        'name': 'Donut Friday Scented T-Shirt',
        'id': '67890',
        'price': '33.75',
        'brand': 'Google',
        'category': 'Apparel',
        'variant': 'Black',
        'quantity': 1
       }]
    }
  }
});
</script>
5 years ago
About coupon code.
Google tracking code has two places for coupon code (order and product).
Nopcommerce has list of discounts.
Plugin takes this list of discounts and checks if this discount has a coupon code.
What can we do?
Plugin can check if discount has type 'for order total' or 'for order subtotal' and than plugin can set google tracking code for order block.
If discount has type 'for product' or 'for category' we don't know what product from the order has this discount.

And I decided to use 'order block' for discount code.
It's bad to put the same duscount code to two places.

About 'Its not tracking shopping cart abandonment'.

I don't know how to do it.
Plugin sends 'purchase' tracking code on order completed page.
Plugin sends to Google all 'add to card' events...
I don't knoe how to send ivent about abandonment.
5 years ago
But if everything is pushed why I see no data in google analytics - Shopping Behavior and Checkout Behaviour. Please help. Attaching screenshot.

It does not show addition to cart, cart / checkout abandonment

screenshots -

https://drive.google.com/file/d/10vTxuP8TklRH9hrZZYjcr56hEybDZCId/view?usp=sharing

https://drive.google.com/file/d/1N006FeDohMnNszSCDs98dr7EYftX-lAU/view?usp=sharing


Also throughout site I do not see addtocart event being pushed using data layer. This is the test website shoponlinecompare.com. If I am adding product to cart no addtocart event is fired.
If something from here might help - https://productforums.google.com/forum/#!topic/tag-manager/PtkbobAImMQ

For coupon code also shows (not set) in google analytics.