We used the official Magento plugin via composer for about a year or so, but recently we're forced to stop using.
We followed instructions to disable and remove, and inside admin config area etc are gone.
However we still see a load of JavaScript on the front page.
Does anyone know how to remove this pls?
Thanks
Page 1 / 1
Hi @danielpugh,
Thanks for sharing this question with the Community!
Are you able to go into the backend of your store’s script and see the Magento code? If so, you should be able to remove it.
If not, I would reach out to the the Magento support team to confirm how to do this since they own the integration.
Hope this helps!
-Taylor
Hi,
Thanks for the reply.
The JavaScript is added by the klaviyo module.
When the module is removed the JavaScript remains.
Unsure what you mean by the "backend of the stores script". I have root admin and ssh access. The script isn't evident in the filesystem so seems to be stored in the database somewhere as a block. However it's not visible via the admin gui.
I would raise a support ticket with klaviyo, but this isn't possible without a subscription (ours has ended).
Hence asking here…
Dan
just to add to above in case anyone does know - im using magento 2.4.6p8
i also tried disabling all functionality via the config section when installed prior to uninstall.
the remaining javascript i get starts like the below snippet… (where XXXX is our ID)
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=XXXX"></script><script> function initConfigurableOptions(productId, optionConfig) {
function findPathParam(key) { const baseUrl = (BASE_URL.substring(0, 2) === '//' ? 'http:' : '') + BASE_URL; const baseUrlParts = (new URL(baseUrl)).pathname.replace(/\/$/, '').split('/'); const pathParts = window.location.pathname.split('/').slice(baseUrlParts.length + 3); for (let i = 0; i < pathParts.length; i += 2) { if (pathParts)i] === key && pathParts.length > i) { return pathPartsii + 1]; } } }
...
As mentioned i would raise a support ticket, but when logged in i get the message below:
Hi @Taylor Tarpley do you know an alternate way to get through to the Klaviyo magento module support team? it would be really good to have this documented. i have searched everywhere, and cannot find any further information on what do do. Never had this level of difficulty/obscurity with other magento modules in the past. Unsure why we are blocked from support assisting which obviously wouldnt be the case if we were on-boarding!