Mojar::Google::Analytics::Response - Response object from GA reporting.
use Mojar::Google::Analytics::Response; $response = Mojar::Google::Analytics::Response->new( auth_user => q{1234@developer.gserviceaccount.com}, private_key => $pk, profile_id => q{5678} );
Container object returned from Google Analytics Core Reporting.
Boolean result status.
Error code.
Error message.
Defaults to global.
global
String containing code and message.
code
message
Reported start index; should match your request.
Reported result set size; should match your request.
Boolean.
Summary of profile.
Arrayref of headers records, including titles and types.
Reported total quantity of records available. (Can fluctuate from one response to the next.)
Array ref containing the result set.
Array ref containing the result set transposed into columns. This can be desirable for fast database insertion.
Overall totals for your requested metrics.
$success = $res->parse($tx->res)
Populates the Response using the supplied transaction response, returning a boolean denoting whether the transaction was successful.
See Mojar.
Net::Google::Analytics is similar, main differences being dependencies and means of getting tokens.
To install Mojar::Google::Analytics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojar::Google::Analytics
CPAN shell
perl -MCPAN -e shell install Mojar::Google::Analytics
For more information on module installation, please visit the detailed CPAN module installation guide.