I am putting some tags on my website for tracking (not facebook Pixel, Bing or GA!) and one of the parameters i need to pass through is the cart id from a user session.
I am familiar with the liquid variables and have being using them for the rest of the tags but there does not seem to be a liquid tag available for a cart id.
My question is - Is there a way of extracting a cart ID from a user session? in order for it to be passed as a parameter
I'm not sure, but I think the ID is assigned the first time a cart gets submitted to checkout. Which would make sense, as the ID wouldn't be needed before then and assigning one to every cart even before going to checkout would result in tons of useless IDs being generated.
The URL for my checkout is the following
I'm assuming the ID is 15334581 as this is consistent with the ID on the abandoned baskets page. Is this correct?
Cheers for your help, really appreciated