I need a custom hidden field at checkout to capture the gclid

I need a custom hidden field at checkout to capture the gclid

chantelleripley
Visitor
1 0 0

Can you create a custom field called "gclid" in shopify?

 

I need to capture the gclid from all customers that checkout on my website

so that i can optimize tracking conversions for advertising

 

i don't have shopify +  is this an option i can self edit or pay someone to add to my site?

Replies 2 (2)

PaulNewton
Shopify Partner
6722 610 1433

You would use cart attributes,  and javascript to put the gclid id from the url into the attributes value. This has to be done in the /cart step BEFORE checkout so is only valid for the online-sales channel

https://community.shopify.com/c/shopify-design/cart-use-cart-attributes-to-collect-more-information/... 

 

 

If you need this customization then contact me by mail for services with detail.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact info in signature.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


gr_trading
Shopify Partner
1886 145 199

Yes @PaulNewton is right you can store the information in cart attribute which will not be visible to user.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee