Magento Plug-in: Output cart and product data as JavaScript variables

  • Status Closed
  • Budget £250 - £750 GBP
  • Total Bids 32

Project Description

Write a magento plug-in that works across versions to expose data for tag managers such as Google Tag manager, Qubut etc. . This data would need to be exposed as javascript variables. You would need to set-up your own demo Magento store, Tag Manager account to test this. These are all available without charge. I will provide tags for you to test this with.

It's quite simple to output this data: Here is a list of data you need to expose on the appropriate pages:

Cart Pages:

Variable Name Description Type

transactionId (Required) Unique transaction identifier string

transactionAffiliation (Optional) Partner or store string

transactionTotal (Required) Total value of the transaction numeric

transactionShipping (Optional) Shipping charge for the transaction numeric

transactionTax (Optional) Tax amount for the transaction numeric

transactionProducts (Optional) List of items purchased in the transaction array of TransactionProduct objects

TransactionProduct Data


Abandoned Cart Y/N

Variable Name Description Type

name (Required) Product name string

sku (Required) Product SKU string

category (Optional) Product category string

price (Required) Unit price numeric

quantity (Required) Number of items numeric

Product Pages:




Image URL


Category Pages:

SKUs Array


Search Pages:

Search text


SKUS array in first page of results

Subscribe/Unsubscribe page or section


All pages:

Visitor ID

VIsitor email


Other values may be added.

Get free quotes for a project like this

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online