Skip to main content

Hello everybody,

I have a client of mine that have 2 websites:

  • A Shopify store for her ecommerce
  • A wordpress site used as a blog

The main website is the WordPress site and she recently created a subdomain where she linked her Shopify store.

I’ve done the integration for the Shopify store without any problem and everything is working smoothly. For the WordPress site we’re using Active Campaign at the moment but soon we’ll switch to Klaviyo as well.

 

Can someone help me clarify these doubts?

  • Is it possible to add a javascript code to WordPress and showcase sign ups form on both websites? If yes, will it work also on Elementor sign up forms?
  • There’s a way to add a tracking code for the visitor activities on WordPress and have the data stored on the same Klaviyo account? We would love to segment our audience based on what they read on the blog

Thanks in advance.

 

Best,

Jacopo

Amazing, thank you Taylor for helping :)


Hi@Japricott

 

Thanks for your patience!

 

I can confirm that you will be able to do this!

 

You will need to add the following script to your WP blog's HTML before the closing </body> tag to allow the use of Klaviyo forms  and tracking:

<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere"></script>

 

Once this script has been added, you can either publish a Pop Up Form to display it right away or add the embed form code to your desired location to display the form. 

 

Thanks for participating in the Community! 

-Taylor 

 


Super! Thank you very much Taylor!

 

One last thing: What should I replace “insertcompanyIDhere” with? With the public API key?


Hi @Japricott

 

Happy to help! Yes it would be your public API key, you can find more instruction about this in our documentation. 

 

-Taylor


Awesome! Thank you very much for the help!


This doesn’t seem to work.

I can not get the tracking code to publish to my website in the footer or header scripts. Even though I push the publish button in theme settings and everything seems to work the script isn’t making it to the website.

I have also tried to use a widget to add the script to the footer, before content, and side bar. none of those work either. 


The code that is provided in the walkthrough instructions is also different than the code that is provided in this feed.  

From Setup Screen in account:

<script type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere" ></script> 

The insertcompanyIDhere auto populates with the company API, which is nice but should there be the “asnyc” text in the code?

From this forum: 

<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere"></script>

I still can’t get either to publish even after using a header/footer plug in but which one should I continue trying to get published?


Reply