Jump to content

Adding Custom Code for Email Subscription

Recommended Posts

I've added custom code to 3 pages on my website for an email subscription that goes to Marketo instead of the squarespace email campaign.

When I first arrive to my website (regardless of page), the subscription box is there. When I switch to a new page that also has the subscription page, the subscription box is not there. When I return to the original page, the subscription box is no longer there.

The subscription box is only live one the first page I land on - not 1 specific page. Once I switch pages, it disappears altogether.

Anyone have a solution?

Thanks!

Link to comment
  • Replies 3
  • Created
  • Last Reply

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Yes you can.

However, the better solution is to re-write and relocate the code. Code in per-page injection won't fire when a page is loaded with Ajax.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.