Results 1 to 3 of 3

Thread: Tracking views from main controller

  1. #1
    Sencha User
    Join Date
    Sep 2015
    Posts
    2

    Default Tracking views from main controller

    Hi all,

    I'm new to sencha and I'm trying use this plugin (https://github.com/danwilson/google-analytics-plugin/) to track page views on my app.

    However, I'm having a hard time tracking views that do not have a controller file. So I was trying to initiate the tracking from the main controller. I tried attaching listeners to the view and also calling the tracking function with the show method from the main controller file. But it doesn't work.

    What am I doing wrong?

    Thanks!

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    What, exactly, isn't working? The listeners in your app? The call to the analytics tracking function?

    Thanks
    Joel

  3. #3
    Sencha User
    Join Date
    Sep 2015
    Posts
    2

    Default

    Hi! It was the listeners, but I got it to work.

    Thank you!

Similar Threads

  1. Fill a viewmodel from main controller
    By Xosofox in forum Ext 5: Q&A
    Replies: 1
    Last Post: 2 Feb 2015, 10:16 PM
  2. Replies: 7
    Last Post: 15 Jul 2013, 8:29 PM
  3. Problem at Getting Started guide with: GS.controller.Main
    By jerrytowers in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 17 Aug 2012, 10:22 AM
  4. Ref the main Application inside a controller
    By landed in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 28 Feb 2012, 2:10 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •