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

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.