public boolean safelyWith(MatomoApplication matomoApplication) { return safelyWith(matomoApplication.getTracker()); }
public void with(MatomoApplication matomoApplication) { with(matomoApplication.getTracker()); }
@Override public void onClick(View v) { TrackHelper.track().screens(getApplication()).with(((MatomoApplication) getApplication()).getTracker()); } });
public void with(Tracker tracker) { if (mDownloadTracker == null) mDownloadTracker = new DownloadTracker(tracker); if (mVersion != null) mDownloadTracker.setVersion(mVersion); if (mForced) mDownloadTracker.trackNewAppDownload(mBaseBuilder.mBaseTrackMe, mExtra); else mDownloadTracker.trackOnce(mBaseBuilder.mBaseTrackMe, mExtra); } }
@Override public Dimension dimension(int id, String value) { CustomDimension.setDimension(mBaseTrackMe, id, value); return this; } }
/** * Tracking the impressions * * @param contentName The name of the content. For instance 'Ad Foo Bar' */ public ContentImpression impression(String contentName) { return new ContentImpression(this, contentName); }
/** * Tracks a shopping cart. Call this javascript function every time a user is adding, updating * or deleting a product from the cart. * * @param grandTotal total value of items in cart */ public CartUpdate cartUpdate(int grandTotal) { return new CartUpdate(this, grandTotal); }
/** * Tracks an <a href="http://matomo.org/docs/site-search/">site search</a> * * @param keyword Searched query in the app * @return this Tracker for chaining */ public Search search(String keyword) { return new Search(this, keyword); }
/** * Tracks an <a href="http://matomo.org/faq/new-to-matomo/faq_71/">Outlink</a> * * @param url HTTPS, HTTP and FTPare valid * @return this Tracker for chaining */ public Outlink outlink(URL url) { return new Outlink(this, url); }
/** * This will create an exception handler that wraps any existing exception handler. * Exceptions will be caught, tracked, dispatched and then rethrown to the previous exception handler. * <p> * Be wary of relying on this for complete crash tracking.. * Think about how to deal with older app versions still throwing already fixed exceptions. * <p> * See discussion here: https://github.com/matomo-org/matomo-sdk-android/issues/28 */ public UncaughtExceptions uncaughtExceptions() { return new UncaughtExceptions(this); }
/** * To track a screenview. * * @param path Example: "/user/settings/billing" * @return an object that allows addition of further details. */ public Screen screen(String path) { return new Screen(this, path); }
@Override public void onClick(View v) { TrackHelper.track().screens(getApplication()).with(((MatomoApplication) getApplication()).getTracker()); } });
public void with(Tracker tracker) { if (mDownloadTracker == null) mDownloadTracker = new DownloadTracker(tracker); if (mVersion != null) mDownloadTracker.setVersion(mVersion); if (mForced) mDownloadTracker.trackNewAppDownload(mBaseBuilder.mBaseTrackMe, mExtra); else mDownloadTracker.trackOnce(mBaseBuilder.mBaseTrackMe, mExtra); } }
public boolean safelyWith(MatomoApplication matomoApplication) { return safelyWith(matomoApplication.getTracker()); }
public void with(MatomoApplication matomoApplication) { with(matomoApplication.getTracker()); }
@Override public Dimension dimension(int id, String value) { CustomDimension.setDimension(mBaseTrackMe, id, value); return this; } }
/** * Tracking the impressions * * @param contentName The name of the content. For instance 'Ad Foo Bar' */ public ContentImpression impression(String contentName) { return new ContentImpression(this, contentName); }
/** * Tracks a shopping cart. Call this javascript function every time a user is adding, updating * or deleting a product from the cart. * * @param grandTotal total value of items in cart */ public CartUpdate cartUpdate(int grandTotal) { return new CartUpdate(this, grandTotal); }