Skip to content

LuanComputacao/google-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-ecommerce

jquery for google eCommerce

#Use

  1. If you already have a code implemented. Exclude the following lines:

      ga('require', 'ec');
      ga('send', 'pageview');
  2. After include a version of jquery in your code before this plugin. As this:

        <body>
        ...
        <script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
        <script src="<your_public_path_to_plugins>/jquery.google.ecommerce.js"></script>
        </body>
  3. So, put jquery.google.ecommerce.js in your your_public_path_to_plugins.

#Optional When you want send a specific route to pageview search this code

    ga('create', 'UA-6########-#', 'auto');

and include this variable after with your route

    dataECPageView = "route_to_my_product_list;

as example

    ...
    ga('create', 'UA-########-#', 'auto');
    dataECPageView = window.location.pathname;

About

jquery for google eCommerce

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published