AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.4K members online now
3.4K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Destintation URL - Need Correct Syntax fo Regular Expression

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am working with a client on Shopify and Shopify has a feature where an automated "recovery" email is sent out to a user when they abandon their cart.  I would like to create a conversion goal or event to monitor when a client click on this link.  An example of the link is below.  The link is dynamically generated, so all the numerical references in the example link below are the dynamically generated portion of the link.  The other characters are constants.  Please advise regarding the correct syntax to setup a regular expression to use the link below as the destination URL.....

 

https://checkout.shopify.com/9785346/checkouts/f103cd3df748616eb609b20422bd84cc/recover?key=b4e4b2ae...

 

Thanks in Advance..

 

Norm C

Re: Destintation URL - Need Correct Syntax fo Regular Expression

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭
Hi Norm,

I'm not too familiar with Shopify but looking at their documentation right now it says that the "abandoned checkout recovery emails will have URLs ending in discount=ABC and that discount will be applied to their checkout automatically." which is different from the sample URL you have right now.
https://help.shopify.com/manual/products/discount-codes/discounts-for-abandoned-checkout-recovery-em...

You should contact the Shopify support to confirm the URL and then once you get the information please update this thread again and we'll help you with the regular expression

Re: Destintation URL - Need Correct Syntax fo Regular Expression

Explorer ✭ ✭ ☆
# 3
Explorer ✭ ✭ ☆
Hi Norm,

Assuming that "recover?key" is a part of the link that never changes and is unique only for link for automated recovery I would write it like that: ^(.*)\/recover\?key(.*)

or if some more checks of URL has to be made:
^(.*)checkout\.shopify\.com(.*)\/checkouts(.*)\/recover\?key(.*)

You can see it in action here: http://regexr.com/3dn1r

Hope it helped.