Socket
Socket
Sign inDemoInstall

ga-segment-pusher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ga-segment-pusher

A python package to push user segmentation mapped to google analytics ID to google analytics.


Maintainers
1

Google Analytics Segment Pusher

version number: 0.0.1 author: Rok Mihevc

Overview

A python package to push user segmentation mapped to google analytics ID to google analytics.

Installation / Usage

To install use pip:

$ pip install ga_segment_pusher

Or clone the repo:

$ git clone https://github.com/rok/ga_segment_pusher.git
$ python setup.py install

Contributing

TBD

Example

import ga_segment_pusher

key_file_location = 'credentials.json'
csv_file_location = 'segments.csv'

upload_params = {
    'account_id': 'XXXXXXXX',
    'web_property_id': 'UA-XXXXXXXX-1',
    'custom_data_source_id': 'XXXXXXXXXXXXXXXXXXXXXX'
}

analytics = ga_segment_pusher.get_service(key_file_location)

ga_segment_pusher.upload_csv(csv_file_location, analytics, **upload_params)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc