Retrieving visited URL when entering automation

I want to populate a custom Deal field based on which pageview brought someone into the automation.

Example:
User visited mysite.com/products/shirt
Deal gets created.
“Product” field in Deal gets populated with “Shirt”

Seems easy enough, but I don’t see a way to retrieve the value of the page that triggered the automation. I can see whether a visitor HAS viewed mysite.com/products/shirt at any point, but not whether that’s what they visited just now.

The brute force method would be to create a separate automation for every product, but that would get unwieldy.

I’m fairly new to AC, but I am comfortable with Google Tag Manager and Javascript, so if there’s a way to do this other than inside of the automation itself—perhaps via the API—I might be able to do that instead.

Hi bnick22,

This is a great question. I did some research and testing on my own account, and I would recommend using the “web page is visited” automation trigger. Then add the Custom Deal Field step in the automation. Since there is no way to segment by the amount of time since you last visited a specific page, you would have to create an automation for each product type, which I know is something you were trying to avoid, but appears to be the only solution at this time. I do think this is a great idea for a feature in segmenting and automations. If you want to suggest this as a feature to the Product Team, you can submit the idea here: ideas.activecampaign.com Not only will it be viewed by our team, but it can be upvoted by other ActiveCampaign users and can help get more eyes on it.

If you have any questions at all, please let me know. Take care and stay safe.