← back to Rentv Adintel
src/analytics/index.js
38 lines
'use strict';
/**
* Analytics module barrel export.
*
* Provides convenient access to all analytics connectors and the derived
* insights engine from a single require() call.
*
* Usage:
* const analytics = require('./src/analytics');
* await analytics.ga4.importAll({ dryRun: false });
* const insights = await analytics.derive.queryClusters();
*
* @module src/analytics
*/
const ga4 = require('../connectors/ga4');
const gsc = require('../connectors/gsc');
const googleAds = require('../connectors/google-ads');
const derive = require('./derive');
module.exports = {
/** GA4 Data API connector (fixture-backed, is_demo=true when no service account) */
ga4,
/** Google Search Console connector (fixture-backed, is_demo=true when no creds) */
gsc,
/**
* Google Ads connector — DISABLED by default.
* Call googleAds.isEnabled() to check before using.
*/
googleAds,
/** Derived sales-intelligence insights (queries ga4_* and gsc_* tables) */
derive,
};