'social_linkedin': fields.char('LinkedIn Account'),
'social_youtube': fields.char('Youtube Account'),
'social_googleplus': fields.char('Google+ Account'),
+ 'google_analytics_key': fields.char('Google Analytics Key'),
'public_user': fields.function(_get_public_user, relation='res.users', type='many2one', string='Public User'),
'menu_id': fields.function(_get_menu, relation='website.menu', type='many2one', string='Main Menu',
store= {
canEditDescription: false,
canEditKeywords: false,
maxTitleSize: 65,
- maxDescriptionSize: 160,
+ maxDescriptionSize: 150,
start: function () {
var self = this;
var $modal = self.$el;
</div>
</footer>
</div>
+ <t t-if="website.google_analytics_key">
+ <script>
+ (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
+ function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
+ e=o.createElement(i);r=o.getElementsByTagName(i)[0];
+ e.src='//www.google-analytics.com/analytics.js';
+ r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
+ ga('create','<t t-esc="website.google_analytics_key"/>');ga('send','pageview');
+ </script>
+ </t>
</body>
</html>
</template>
<field name="social_linkedin" placeholder="http://www.linkedin.com/company/openerp"/>
<field name="social_youtube" placeholder="http://www.youtube.com/channel/HCU842OHPPNrQ"/>
<field name="social_github" placeholder="https://youraccount.github.io"/>
+ <field name="google_analytics_key" placeholder="UA-XXXXXXXX-1"/>
</group>
<group string="Other Info">
<field name="company_id" groups="base.group_multi_company"/>