Title: SG Optimizer doesn&#8217;t work with ConvertKit plugin
Last modified: June 3, 2023

---

# SG Optimizer doesn’t work with ConvertKit plugin

 *  Resolved [nielk](https://wordpress.org/support/users/nielk/)
 * (@nielk)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/)
 * Hello Everyone, Good Day!
 * I just want to ask for your help on the issue I am encountering on my website.
   Currently, I have a ConvertKit plugin installed to my wordpress website and hosted
   using SiteGround, with this I have also a SiteGround Optimizer plugin installed.
   Now, I added a form to the content of my site from the ConvertKit plugin and 
   it is working and showing when I try to preview my site in WordPress after finalizing
   my changes I noticed on my live website it did not show the changes I made specifically
   from the ConvertKit form so I did some research and found out that a caching 
   plugin needs to be deactivate for it to reflect and so I did try it on my end
   and fortunately it works. I tried researching alternative solution without deactivating
   the SG Optimizer plugin and found out that just needs to exclude some files on
   CSS and Javascripts but it did not works on my end.
 * could you help me with this issue? I’ll appreciate it if you can provide an alternative
   solution that involves of not deactivating the SG Optimizer.
 * Thank you,
 * Nielk

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Tsvetan Mitev](https://wordpress.org/support/users/tsvetanm/)
 * (@tsvetanm)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791182)
 * Hello [@nielk](https://wordpress.org/support/users/nielk/),
 * I suspect that the problem most likely comes from the external JS script that
   the plugin calls on the form pages. The script in question comes from the system
   ConvertKit domain. You can exclude the external script form the JS Combine option
   with the following filter we’ve designed for that purpose. Here’s an example 
   of the code:
 * `add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script');
   
   function js_combine_exclude_external_script( $exclude_list ) {$exclude_list[]
   = '**your.covertkit.domain**';return $exclude_list;}
 * You need to replace “your.convertkit.domain” with your actual ConvertKit domain
   name. You can find the system domain in the [Domains](https://help.convertkit.com/en/articles/3639563-ck-page-domains)
   section of your ConvertKit account.
 * You can add the filter in the functions.php file of the currently active theme.
   Other alternative is to include it at the bottom of the wp-config.php file, as
   this way the theme updates will not overwrite the custom filter. All of the available
   custom filters can be found in our official [documentation](https://wordpress.org/plugins/sg-cachepress/).
 * In case you are still experiencing issues, even after excluding the external 
   script, my recommendation is to check for any other scripts which might interfere
   with the JS/CSS options. The following [procedure](https://wordpress.org/support/topic/how-to-use-sg-optimizers-filters-procedure/)
   provides guidance on how you can do that.
 * If you are having troubles narrowing down the problem and you are a SiteGround
   customer, please [contact our Technical Support team](https://www.siteground.com/tutorials/getting-started/getting-help-from-our-support-team/)
   and we will further look into this.
 * Best Regards,
 * Tsvetan Mitev
 *  Thread Starter [nielk](https://wordpress.org/support/users/nielk/)
 * (@nielk)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791192)
 * Hi Tsvetan,
 * Thank you for your response. will it be ok if I add the code snippet using a 
   File Manager from the SiteGround site?
 *  Plugin Support [Tsvetan Mitev](https://wordpress.org/support/users/tsvetanm/)
 * (@tsvetanm)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791267)
 * Yes, you can use [File Manager](https://siteground.com/kb/manage-files-file-manager/)
   in Site Tools to add the code snippet.
 * Best Regards,
 * Tsvetan Mitev
 *  Thread Starter [nielk](https://wordpress.org/support/users/nielk/)
 * (@nielk)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791407)
 * Hello Tsvetan,
 * The fix you provided works now on my website. Thank you very much for your help.
 * Warmest regards,
 * Nielk
 *  Plugin Support [Tsvetan Mitev](https://wordpress.org/support/users/tsvetanm/)
 * (@tsvetanm)
 * [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791533)
 * You are most welcome!
 * Best Regards,
 * Tsvetan Mitev

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘SG Optimizer doesn’t work with ConvertKit plugin’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tsvetan Mitev](https://wordpress.org/support/users/tsvetanm/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/sg-optimizer-doesnt-work-with-convertkit-plugin/#post-16791533)
 * Status: resolved