I remember there is parameter added the the script...
# suitecommerce
w
I remember there is parameter added the the script tag to not be read for page generator? any one remember that parameter? I can't seem to find the documentation for it. Thanks
s
I'm not aware of any parameter but we typically do this:
Copy code
<script>
	if(!SC.isPageGenerator()){
        // is NOT the page generator
    }
</script>
w
I should be able to use this SC.isPageGenerator in shopping.ssp, right?
(I know it's not best practice) 😞
s
I should be able to use this SC.isPageGenerator in shopping.ssp, right?
Yes
(I know it's not best practice) 😞
This specific thing is best practice for what it does. What exactly is not best practice?
w
adding third-party script directly in the shopping.ssp file ie. <script src="path/to/third-party.js"></script>, is this okay to do?
s
Well yeah, it's not typically something we would recommend but if you're going to do it then go for it
👍 1
w
thanks, Steve as always