Can this be used to add external API to a page?

[ad_1]

Just a quick one. We’ve been given a external JS API code to add to our website. It needs to trigger just on the order confirmation page to plant a tree for that order.

I’ve tried to add the API using this plugin with the following settings:

Auto Insert
Site Wide Header
Any device type
Enable logic
Show if page URL contains /checkout/order-received

I’ve also tried ‘Insert before content’

Both ways do include the API JS on the confirmation page (Inspect > Network) – however it doesn’t look like it responds with anything.

I’ve checked for a response using the ‘tree impact API’ and can see it is not working.

I just wondered if this plugin can be used to insert external API?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer