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.
