shyam1985
Forum Replies Created
-
Hi Team,
Please help me how to implement login with google in AMP page.
Regards,
ShyamThe page I need help with: https://amp.dev/documentation/components/amp-onetap-google/
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Hi, can you please tell me why this “Haptik File” file blocked only in AMP but not in NON-AMP?
I am not getting error in NON-AMP Page means it not get blocked . So any configuration need to do in AMP?
Please help me
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Hi, Any update on this?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?I am getting this error in AMP page but not getting in NON-AMP page while using the below code for haptik
add_action('amp_post_template_above_footer', 'amp_haptik_integration'); function amp_haptik_integration(){ ?> <amp-script layout="container" src="https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js" class="amp-script-sample"> <button id="hello">Click!</button> </amp-script> <amp-script layout="container" script="inline_amp" class="amp-script-sample"> <button id="hello2">Click!</button> </amp-script> <script id="inline_amp" type="text/plain" target="amp-script"> var haptikInitSettings = { "business-id": "1239", "client-id": "833f23899d5758d5f0214d16hkjhjsdkfsdf", "base-url": "https://domain.haptikapi.com/", }; </script> <?php } ?>Developer Console Error :
Access to fetch at ‘https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
- This reply was modified 5 years, 7 months ago by shyam1985.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Hi Sorry, I am not getting properly. Can you please help me how to add this below script in AMP without “custom java script not allowed” error ?
like when I validate amp code is this google url VALIDATE AMP I need to get “VALID AMP Page” as well.
<script> window.haptikInitSettings = { "business-id": "<business-id>", "client-id": "<client-id>", "base-url": "<base-url>", }; </script> <script type="text/javascript" charset="UTF-8" src="https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js" ></script>- This reply was modified 5 years, 7 months ago by shyam1985.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Hi, I am getting this error
log.js:258 [amp-script] Uncaught TypeError: Cannot read property ‘src’ of undefined
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Thanks for your reply,
What is Haptik ?
Al That Understands Humans
Industry AI models with domain-specific intelligence to accurately comprehend user intent and deliver contextual responses solving problems end-to-endwhat are you trying to implement in AMP?
add_action('amp_post_template_above_footer', 'amp_intercom_integration'); function amp_intercom_integration(){?> <amp-script layout="container" src="http://localhost/exams/haptik_custom.js" class="amp-script-sample"> </amp-script> <amp-script layout="container" src="https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js" class="amp-script-sample"> </amp-script> <?php }Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] How to implement Haptik in AMP ?Any update on this?