All Projects → agilie → Gtm In Viewport Manager

agilie / Gtm In Viewport Manager

Licence: other
A manager of in-viewport events for GTM (Google Tag Manager).

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to Gtm In Viewport Manager

events-manager-io
A basic site for managing event centers and scheduling events.
Stars: ✭ 19 (-5%)
Mutual labels:  events, manager
Timespace
A jQuery plugin to handle displaying of time events
Stars: ✭ 27 (+35%)
Mutual labels:  events, jquery-plugin
Phly Event Dispatcher
Experimental PSR-14 implementation, tracking the specification.
Stars: ✭ 24 (+20%)
Mutual labels:  events
Librecms
Free Open Source Content Management System, based on PHP, Bootstrap and jQuery.
Stars: ✭ 12 (-40%)
Mutual labels:  manager
Shadow Animation Jquery Plugin
Shadow animation jQuery plugin
Stars: ✭ 9 (-55%)
Mutual labels:  jquery-plugin
Xtd forms
Modern c++17 library to create native gui for Microsoft Windows, Apple macOS and Linux.
Stars: ✭ 25 (+25%)
Mutual labels:  events
Jquery.marquee
jQuery plugin to scroll the text like the old traditional marquee
Stars: ✭ 857 (+4185%)
Mutual labels:  jquery-plugin
Code Notes
A simple code snippet & gist manager for developers built with Electron & Vue.js 🚀
Stars: ✭ 919 (+4495%)
Mutual labels:  manager
Infinite Scroll
📜 Automatically add next page
Stars: ✭ 7,006 (+34930%)
Mutual labels:  jquery-plugin
Pipe
Multi provider event grid written in go
Stars: ✭ 9 (-55%)
Mutual labels:  events
Rules
Durable Rules Engine
Stars: ✭ 863 (+4215%)
Mutual labels:  events
Vector
A reliable, high-performance tool for building observability data pipelines.
Stars: ✭ 8,736 (+43580%)
Mutual labels:  events
Core Update Manager
A Performant Update Manager for Unity
Stars: ✭ 25 (+25%)
Mutual labels:  manager
Bootstrap Msg
The jQuery plugin for showing message with Bootstrap alert classes
Stars: ✭ 10 (-50%)
Mutual labels:  jquery-plugin
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (+20%)
Mutual labels:  events
Egjs
Javascript components group that brings easiest and fastest way to build a web application in your way.
Stars: ✭ 871 (+4255%)
Mutual labels:  jquery-plugin
Fontmoa
Simple Font Manager for Cross Platform
Stars: ✭ 23 (+15%)
Mutual labels:  manager
Modelassistant
Elegant library to manage the interactions between view and model in Swift
Stars: ✭ 26 (+30%)
Mutual labels:  manager
Cz Parallax
Simple and tiny jQuery plugin for Parallax effect.
Stars: ✭ 10 (-50%)
Mutual labels:  jquery-plugin
Framecarousel
A jQuery plugin for quickly creating carousels within frames
Stars: ✭ 14 (-30%)
Mutual labels:  jquery-plugin

License

jQuery GTM In-Viewport Manager Plugin

A manager of in-viewport events for GTM (Google Tag Manager).

We are happy to share with you our new jQuery GTM In-Viewport Manager Plugin aimed to ease a way of working with Google Tag Manager (GTM).

GTM is a free tool for simple and convenient tag/events management solutions which makes it possible to add and update website tags with just a few clicks, without needing to edit the website code. It has a powerful interface allowing to set up various events that should trigger in concordance with WEB/SEO masters' needs. But in some cases we have to spend a lot of time to add extra handlers for ’specific’ events, - such as in-viewport event - which should fire when some element is shown to a website user.

This jQuery plugin is build for making developer's work process much easier. It’s really helpful in cases if you needs to set up GTM events for the elements initially unseen when they appears in the browser viewport.

Installation/integration and usage:

<script src="path/to/jquery.gtm-in-viewport.min.js"></script>
<script type="application/javascript">
    $(document).ready(function () {
        GTMViewport.init([
            {
                selector: '#some_element_id_1',
                eventName: 'some_element_id_1_was_viewed_event',
                callback: function(eventName) {
                    console.log(eventName);
                }
            },
            {
                selector: '#some_element_id_2',
                eventName: 'some_element_id_2_was_viewed_event'
            },
            {
                selector: '#some_element_id_3',
                eventName: 'some_element_id_4_was_viewed_event'
            }
        ]);
    });
</script>

To start observing the element on the page, you just need to pass its CSS selector to ’selector’ key and event name ('eventName' key) which will be sent to GTM. Optionally, you can pass a callback function ('callback' key) that takes the event name as a parameter and will be called after the event has been sent..

Dependencies

Building

  1. Install necessary packages.

    npm install
    
  2. Install Bower globally.

    npm install -g bower
    
  3. Install javascript libs dependencies - jQuery, isOnScreen jQuery plugin.

    bower install
    
  4. Build (to 'dist' folder).

    gulp
    

Demo

You can also see an example here in order to try it out.

demo image

Troubleshooting

Problems? Check the Issues block to find the solution or create an new issue that we will fix asap. Feel free to contribute.

Author

This jQuery plugin is open-sourced by Agilie Team [email protected]

Contributors

Contact us

If you have any questions, suggestions or just need a help with web or mobile development, please email us at [email protected]. You can ask us anything from basic to complex questions.

We will continue publishing new open-source projects. Stay with us, more updates will follow!

License

The MIT License (MIT) Copyright © 2017 Agilie Team

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].