• Hi Thomas thanks for the plugin.

    I have a question. Is it possible to reduce the size of the payload on event: gtm4wp.orderComplete? It seems that there is a lot of duplicate data in the payload which is quickly exceeding the 8kB limit, resulting in transactions not being recorded in Analytics Enhanced Ecommerce (I’m following your guide here: https://gtm4wp.com/for-advanced-users/missing-google-analytics-transactions-here-are-10-reasons-why.html).

    In GTM4WP plugin settings, under Integration > Woocommerce, I have only checked “Order data in data layer” to be added to my data layer which appears to be required to record order $ value, etc. Is there any way to reduce the size of the payload further?

    Any help is much appreciated, thanks Thomas.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter charlower

    (@charlower)

    I’ve included a sample of the object for your reference, am I correct in thinking that a lot of these values are duplicate and not necessary? Please see this gist:

    https://gist.github.com/charlower/badaa8ed2175a5590114b5fd762760d7

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I have the feeling that there is a confusion about GA payload size and the data layer.

    Once you enabled order data in data layer, that has nothing to do with enhanced ecommerce tracking. While EEC requires a few attributes of the order, there might be use cases when some other attributes are needed as well.

    But regardless of that, the data layer can be of any size, it does not influence the size of the GA payload. If you are tracking enhanced ecommerce (and you setup your tracking based on the setup article), GA will only read the “ecommerce” key from the data layer, omitting the order data part.

    If there are lots of products in the cart during checkout, this could lead to large payloads but if we are talking about 2-5 products, it shouldn’t be an issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reducing size of data layer on orderComplete’ is closed to new replies.