I’m trying to understand how to track the incoming page that the visitor originally entered, and show this as a link on the entire site so that they can return to this start page if they navigate the site. In essence, the customer’s model is that they are going to send links to potential customers to a specific product page. They did not build site navigation with all their products (a bad idea that I know). But if a user leaves this product homepage after logging in via the email link and going to the contact page, home page or somewhere else, there really is no way unless they constantly click back to find this product homepage through which they entered.
So, I use PHP CMS (specifically for MODx) and use the e-commerce Foxy Cart. This way, I have jquery and JSON at my disposal to work. Unfortunately, I do not know where to start.
Here is what I assume I need to do:
- You have an empty div waiting in a certain sense to receive an incoming link.
- After entering the product page, jquery will “capture” the value in the h1 tag and capture the URL, save this information in the empty div mentioned above.
Here is what I would like to imagine it to be (please feel free to correct me if I am wrong, or if you have a better idea):
<h1>Product Name Here</h1>
<div class="records_first_page_entry_name"><a href="[+first_page_URL+]">[+product_name_here+]</a></div>
I would suggest that these placeholders (namely [+ first_page_URL +] and [+ product_name_here +]) will be replaced with the corresponding values. Then I need these div values that will be carried across all pages of my site.
, . !