Skip to main content
Topic: Include third party plugin on PhpRad (Read 3271 times) previous topic - next topic

Include third party plugin on PhpRad

Hi, there is any way to integrate a third-party plugin on PHPRad?
I want to use the plugin below
https://www.tawk.to/

I also want to add Google Analytics too.
To add Google Analytics, I just need to add this snippet of code in any part of the page.

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

The only way to use it is editing manually or there is an alternative way to do that by using some field or form on PhpRad?

Re: Include third party plugin on PhpRad

Reply #1
@claudiomg‍ you can add the code snippets for the plugins in app/views/layouts/main_layout.php, either within <head> and </head> tag or immediately before the closing </body> tag. thanks.

 

Re: Include third party plugin on PhpRad

Reply #2
@claudiomg‍ you can add the code snippets for the plugins in app/views/layouts/main_layout.php, either within <head> and </head> tag or immediately before the closing </body> tag. thanks.
  hello, how do you install phpword on PHPrad classic? i want to implement phpword in my PHPRad project. Thank You

Re: Include third party plugin on PhpRad

Reply #3
Open your project root and use composer to install it into the generated project as indicated in the PHPword docs then you can start writing the code for it manually.