Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to show Search Overview in google analytics in php
    primarykey
    data
    text
    <p>How to show Search Overview in google analytics in php ??</p> <p>Google analytics page shown</p> <p><strong>Visits 76</strong> </p> <p>I am using this function <strong>ga:organicSearches</strong> link is here <a href="https://developers.google.com/analytics/devguides/reporting/core/dimsmets#cats=visitor,session,trafficsources,adwords,goalconversions,platform,geonetwork,system,socialactivities,pagetracking,internalsearch,sitespeed,apptracking,eventtracking,ecommerce,socialinteractions,usertimings,exceptions,customvars,time" rel="nofollow">developers.google.com/analytics/devguides/reporting/core</a></p> <p>I want to show this data inside my new analytics website but this function shows me <strong>74 Visits</strong> </p> <p>May I know where I am wrong.</p> <p>Here is my Code so far :-</p> <pre><code>$ga1 = new gapi($ga_email,$ga_password); /* We are using the 'source' dimension and the 'visits' metrics */ $dimensions = array('source'); $metrics = array('visits','organicSearches'); /* We will sort the result be desending order of visits, and hence the '-' sign before the 'visits' string */ $ga1-&gt;requestReportData($ga_profile_id, $dimensions, $metrics, '-visits', // Sort by 'visits' in descending order $filter, // Filter the data '2012-10-05', // Start Date '2012-11-04', // End Date 1, // Start Index 500 // Max results ); $gaResults = $ga1-&gt;getResults(); $i=1; foreach($gaResults as $result) { printf("%-4d %-40s %5d\n", $i++, $result-&gt;getSource(), $result-&gt;getVisits()); } echo "\n-----------------------------------------\n"; echo "Total Results : {$ga1-&gt;getTotalResults()}"; echo "getOrganicSearches:".$ga1-&gt;getOrganicSearches().'&lt;br /&gt;'; </code></pre> <p>Is there any other function to show this data ??? </p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload