Custom code for advertorial


i’ve attached an image. we want to personalise headline in advertorial to say the city user is visiting from. Example: This Is How A Mom Made $13,000 in Miami. If this user is located in miami, it should say miami. as well in the image their is a review written date, this should be matched with the current day every day

thanks

1 Like

Hi @humm

I see you’re looking to personalize the headline in your advertorial based on the visitor’s city. This can be a great way to enhance engagement and conversions!

To achieve this, you can follow the tutorial I’ve put together, which explains how to dynamically display the user’s city using JavaScript. You can find it here: How to Personalize Your Website Text by Displaying the Visitor’s City to Boost Conversions.

Additionally, if you want to match the review date with the current day, you can use JavaScript’s Date object to get the current date and update your review section accordingly.

If you have any specific questions or need further assistance while implementing this, feel free to ask!

Best,
Anwer