INUMIO-Rob Posted November 16, 2016 Report Share Posted November 16, 2016 Hello friends, I am wondering if the Blesta UI exposes a place for me to paste my Google Analytics, or if I need to put it into the html manually somewhere? I searched the subject but came up with few relevant results, none from 2016. I did look in a few places in Blesta but am not seeing anything. Thank you. Quote Link to comment Share on other sites More sharing options...
Michael Posted November 16, 2016 Report Share Posted November 16, 2016 You can edit the /app/views/client/theme/structure.pdt and add the code at the bottom. INUMIO-Rob and Paul 2 Quote Link to comment Share on other sites More sharing options...
Paul Posted November 16, 2016 Report Share Posted November 16, 2016 It's likely we'll be adding a text area you can paste that into in the future, but follow Mike's instructions above and you'll be set. INUMIO-Rob and Michael 2 Quote Link to comment Share on other sites More sharing options...
INUMIO-Rob Posted November 17, 2016 Author Report Share Posted November 17, 2016 Thanks, Gents. Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted November 17, 2016 Report Share Posted November 17, 2016 We have a solution for that case . Just stay tunned we are in the road to release it . INUMIO-Rob and JNdev 2 Quote Link to comment Share on other sites More sharing options...
Nelsa Posted November 17, 2016 Report Share Posted November 17, 2016 You can use CSS Java Toolbox plugin form Naja/Blesta Addons.... select just client template and it will exclude admin tpl ..I have do it at this way for few clients....after you plugin is installed just click on menage--->than "add custom html code"--->and than you'll have two options,first is to select between " All pages" or "admin tpl" or "client tpl " and as last step select "before the </body> tag". If you want exclude admin area select "client tpl/pages" ,your code will be placed at bottom of every page ...it is where i put <script></script> even if i do it manualy.... Paul, Blesta Addons and INUMIO-Rob 3 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted November 18, 2016 Report Share Posted November 18, 2016 19 hours ago, Nelsa said: You can use CSS Java Toolbox plugin form Naja/Blesta Addons.... select just client template and it will exclude admin tpl ..I have do it at this way for few clients....after you plugin is installed just click on menage--->than "add custom html code"--->and than you'll have two options,first is to select between " All pages" or "admin tpl" or "client tpl " and as last step select "before the </body> tag". If you want exclude admin area select "client tpl/pages" ,your code will be placed at bottom of every page ...it is where i put <script></script> even if i do it manualy.... i have forget this plugin with this plugin you can set any HTML css with your blesta without touching any core file . Paul 1 Quote Link to comment Share on other sites More sharing options...
INUMIO-Rob Posted November 18, 2016 Author Report Share Posted November 18, 2016 Neat! Thanks for those ideas. I added the analytics snippet to the .pdt markup, and all is well. Good to know the plugin exists, for future reference! Michael 1 Quote Link to comment Share on other sites More sharing options...
inet Posted August 7, 2018 Report Share Posted August 7, 2018 what if i have different companies under the same installation how i can manage this Quote Link to comment Share on other sites More sharing options...
WebhostingNZ.com Posted August 7, 2018 Report Share Posted August 7, 2018 You could create a template for each company, then edit each template. Or add some PHP similar to the following: <?PHP $host = $_SERVER['HTTP_HOST']; if ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } elseif ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } ?> I'm sure there is a better way than the above but it works for us with our live chat. Michael 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted August 8, 2018 Report Share Posted August 8, 2018 On 8/7/2018 at 4:28 AM, inet said: what if i have different companies under the same installation how i can manage this if you have the Plugin Blesta Seo Tools this can do the job for you. You can also use our Javascript and Css Tools box . Quote Link to comment Share on other sites More sharing options...
Paul Posted August 8, 2018 Report Share Posted August 8, 2018 On 8/6/2018 at 9:12 PM, WebhostingNZ.com said: You could create a template for each company, then edit each template. Or add some PHP similar to the following: <?PHP $host = $_SERVER['HTTP_HOST']; if ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } elseif ($host == "YOURCOMPANYBLESTAURL"){ echo 'YOUR CODE'; } ?> I'm sure there is a better way than the above but it works for us with our live chat. This is the "better way" if editing structure.pdt <?php if($system_company->id == "1") { ?> .. your code here .. <?php } ?> Just change the ID "1" to your company ID. Then you don't have to do the hostname validation yourself, it'll be done based on the company. WebhostingNZ.com and Blesta Addons 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.