This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Info: | |
// http://doc.prestashop.com/pages/viewpage.action?pageId=51184692 | |
// Used tables: ps_manufacturer, ps_category_lang, ps_product_lang, ps_product | |
// Run: php create_meta_product.php | |
// Clean: | |
// UPDATE ps_product_lang SET meta_title = "", meta_description=""; | |
require(dirname(__FILE__).'/./config/config.inc.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
googleapis | |
.discover('analytics', 'v3') | |
.execute(function(err, client) { | |
if (err) { | |
utils.applog('error', {from: "lib/fetch/analytics.js", value: err, reference: "getAnalytics", resource: user_id}); | |
return; | |
} | |
// Array that contains all request | |
var requests_list = [ | |
{metrics: "ga:visits,ga:newVisits,ga:percentNewVisits,ga:newVisits,ga:pageviews,ga:visitBounceRate,ga:pageviewsPerVisit,ga:avgTimeOnSite"}, |