C# Class Piwik.Tracker.PiwikTracker

PiwikTracker implements the Piwik Tracking Web API. The PHP Tracking Client provides all features of the Javascript Tracker, such as Ecommerce Tracking, Custom Variable, Event tracking and more. Functions are named the same as the Javascript functions. See introduction docs at: {@link http://piwik.org/docs/tracking-api/} ### Example: using the PHP PiwikTracker class The following code snippet is an advanced example of how to track a Page View using the Tracking API PHP client. $t = new PiwikTracker( $idSite = 1, 'http://example.org/piwik/'); // Optional function calls $t->setUserAgent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB) Firefox/3.6.6"); $t->setBrowserLanguage('fr'); $t->setLocalTime( '12:34:06' ); $t->setResolution( 1024, 768 ); $t->setBrowserHasCookies(true); $t->setPlugins($flash = true, $java = true, $director = false); // set a Custom Variable called 'Gender' $t->setCustomVariable( 1, 'gender', 'male' ); // If you want to force the visitor IP, or force the server date time to a date in the past, // it is required to authenticate the Tracking request by calling setTokenAuth // You can pass the Super User token_auth or any user with 'admin' privilege on the website $idSite $t->setTokenAuth( $token_auth ); $t->setIp( "134.10.22.1" ); $t->setForceVisitDateTime( '2011-04-05 23:55:02' ); // if you wanted to force to record the page view or conversion to a specific User ID // $t->setUserId( "[email protected]" ); // Mandatory: set the URL being tracked $t->setUrl( $url = 'http://example.org/store/list-category-toys/' ); // Finally, track the page view with a Custom Page Title // In the standard JS API, the content of the tag would be set as the page title $t->doTrackPageView('This is the page title'); ### Example: tracking Ecommerce interactions Here is an example showing how to track Ecommerce interactions on your website, using the PHP Tracking API. Usually, Ecommerce tracking is done using standard Javascript code, but it is very common to record Ecommerce interactions after the fact (for example, when payment is done with Paypal and user doesn't come back on the website after purchase). For more information about Ecommerce tracking in Piwik, check out the documentation: Tracking Ecommerce in Piwik. $t = new PiwikTracker( $idSite = 1, 'http://example.org/piwik/'); // Force IP to the actual visitor IP $t->setTokenAuth( $token_auth ); $t->setIp( "134.10.22.1" ); // Example 1: on a Product page, track an "Ecommerce Product view" $t->setUrl( $url = 'http://www.mystore.com/Endurance-Shackletons-Legendary-Antarctic-Expedition' ); $t->setEcommerceView($sku = 'SKU0011', $name = 'Endurance - Shackleton', $category = 'Books'); $t->doTrackPageView( 'Endurance Shackletons Legendary Antarctic Expedition - Mystore.com'); // Example 2: Tracking Ecommerce Cart containing 2 products $t->addEcommerceItem($sku = 'SKU0011', $name = 'Endurance - Shackleton' , $category = 'Books', $price = 17, $quantity = 1); // Note that when setting a product category, you can specify an array of up to 5 categories to track for this product $t->addEcommerceItem($sku = 'SKU0321', $name = 'Amélie' , $categories = array('DVD Foreign','Best sellers','Our pick'), $price = 25, $quantity = 1); $t->doTrackEcommerceCartUpdate($grandTotal = 42); // Example 3: Tracking Ecommerce Order $t->addEcommerceItem($sku = 'SKU0011', $name = 'Endurance - Shackleton' , $category = 'Books', $price = 17, $quantity = 1); $t->addEcommerceItem($sku = 'SKU0321', $name = 'Amélie' , $categories = array('DVD Foreign','Best sellers','Our pick'), $price = 25, $quantity = 1); $t->doTrackEcommerceOrder($orderId = 'B000111387', $grandTotal = 55.5, $subTotal = 42, $tax = 8, $shipping = 5.5, $discount = 10); ### Note: authenticating with the token_auth To set the visitor IP, or the date and time of the visit, or to force to record the visit (or page, or goal conversion) to a specific Visitor ID, you must call setTokenAuth( $token_auth ). The token_auth must be either the Super User token_auth, or the token_auth of any user with 'admin' permission for the website you are recording data against. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="doc-tags"> </div> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://csharp.hotexamples.com/site/file?hash=0x4024a9762745a35ed681e225c3fcb589bd2d5b933610f9504708e135af7c9509&fullName=&project=piwik%2Fpiwik-dotnet-tracker')"> Show file </a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://csharp.hotexamples.com/site/redirect?url=https%3A%2F%2Fgithub.com%2Fpiwik%2Fpiwik-dotnet-tracker')"> Open project: piwik/piwik-dotnet-tracker </a> <a class="btn btn-default" href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/-/php-piwiktracker-class-examples.html"> Class Usage Examples </a> <h2>Public Properties</h2> <table class="table table-striped"> <tr> <th>Property</th> <th>Type</th> <th>Description</th> <th></th> </tr> <tr class="property-descr"> <td><a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#"><span class="var-name">DEBUG_LAST_REQUESTED_URL</span></a></td> <td>string</td> <td></td> <td class="actions"><a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to property Piwik.Tracker.PiwikTracker::DEBUG_LAST_REQUESTED_URL documentation"> <i class='icon-borderless icon-link'></i> </a> </td> </tr> <tr class="property-descr"> <td><a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#"><span class="var-name">URL</span></a></td> <td>string</td> <td></td> <td class="actions"><a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to property Piwik.Tracker.PiwikTracker::URL documentation"> <i class='icon-borderless icon-link'></i> </a> </td> </tr> </table> <h2>Public Methods</h2> <table class="table table-striped"> <tr> <th>Method</th> <th>Description</th> <th></th> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">PiwikTracker</a></span> ( <span class="param-type">int</span> <span class="param-name">idSite</span>, <span class="param-type">string</span> <span class="param-name">apiUrl</span> = "" ) : <span class="return-type">System</span> </td> <td> <p>Builds a PiwikTracker object, used to track visits, pages and Goal conversions for a specific website, by using the Piwik Tracking API. If the tracker is used within a web page or web controller, the following information are pre-initialised : URL Referrer, current page URL, remote IP, Accept-Language HTTP header and User-Agent HTTP header.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/PiwikTracker/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::PiwikTracker"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::PiwikTracker documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">addEcommerceItem</a></span> ( <span class="param-type">string</span> <span class="param-name">sku</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">List<string></span> <span class="param-name">categories</span> = null, <span class="param-type">double</span> <span class="param-name">price</span>, <span class="param-type">ulong</span> <span class="param-name">quantity</span> = 1 ) : <span class="return-type">void</span> </td> <td> <p>Adds an item in the Ecommerce order. This should be called before doTrackEcommerceOrder(), or before doTrackEcommerceCartUpdate(). This function can be called for all individual products in the cart (or order). SKU parameter is mandatory. Other parameters are optional (set to false if value not known). Ecommerce items added via this function are automatically cleared when doTrackEcommerceOrder() or getUrlTrackEcommerceOrder() is called.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/addEcommerceItem/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::addEcommerceItem"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::addEcommerceItem documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">clearCustomTrackingParameters</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Clears any custom tracking parameters that have been set.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/clearCustomTrackingParameters/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::clearCustomTrackingParameters"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::clearCustomTrackingParameters documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">clearCustomVariables</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Clears any Custom Variable that may be have been set. This can be useful when you have enabled bulk requests, and you wish to clear Custom Variables of 'visit' scope.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/clearCustomVariables/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::clearCustomVariables"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::clearCustomVariables documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">deleteCookies</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Deletes all first party cookies from the client<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/deleteCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::deleteCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::deleteCookies documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">disableCookieSupport</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>By default, PiwikTracker will read first party cookies from the request and write updated cookies in the response (using setrawcookie). This can be disabled by calling this function.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/disableCookieSupport/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::disableCookieSupport"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::disableCookieSupport documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">disableSendImageResponse</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>If image response is disabled Piwik will respond with a HTTP 204 header instead of responding with a gif.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/disableSendImageResponse/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::disableSendImageResponse"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::disableSendImageResponse documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doBulkTrack</a></span> ( ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Sends all stored tracking actions at once. Only has an effect if bulk tracking is enabled. To enable bulk tracking, call enableBulkTracking().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doBulkTrack/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doBulkTrack"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doBulkTrack documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doPing</a></span> ( ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Sends a ping request. Ping requests do not track new actions. If they are sent within the standard visit length (see global.ini.php), they will extend the existing visit and the current last action for the visit. If after the standard visit length, ping requests will create a new visit using the last action in the last known visit.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doPing/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doPing"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doPing documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackAction</a></span> ( <span class="param-type">string</span> <span class="param-name">actionUrl</span>, <span class="param-type">ActionType</span> <span class="param-name">actionType</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks a download or outlink<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/doTrackAction/php-piwiktracker-dotrackaction-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::doTrackAction"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackAction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackAction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackAction documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackContentImpression</a></span> ( <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span> = "Unknown", <span class="param-type">string</span> <span class="param-name">contentTarget</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks a content impression<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackContentImpression/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackContentImpression"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackContentImpression documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackContentInteraction</a></span> ( <span class="param-type">string</span> <span class="param-name">interaction</span>, <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span> = "Unknown", <span class="param-type">string</span> <span class="param-name">contentTarget</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks a content interaction. Make sure you have tracked a content impression using the same content name and content piece, otherwise it will not count. To do so you should call the method doTrackContentImpression();<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackContentInteraction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackContentInteraction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackContentInteraction documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEcommerceCartUpdate</a></span> ( <span class="param-type">double</span> <span class="param-name">grandTotal</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks a Cart Update (add item, remove item, update item). On every Cart update, you must call addEcommerceItem() for each item (product) in the cart, including the items that haven't been updated since the last cart update. Items which were in the previous cart and are not sent in later Cart updates will be deleted from the cart (in the database).<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEcommerceCartUpdate/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEcommerceCartUpdate"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEcommerceCartUpdate documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEcommerceOrder</a></span> ( <span class="param-type">string</span> <span class="param-name">orderId</span>, <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks an Ecommerce order. If the Ecommerce order contains items (products), you must call first the addEcommerceItem() for each item in the order. All revenues (grandTotal, subTotal, tax, shipping, discount) will be individually summed and reported in Piwik reports. Only the parameters $orderId and $grandTotal are required.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEcommerceOrder/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEcommerceOrder"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEcommerceOrder documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEvent</a></span> ( <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">string</span> <span class="param-name">action</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">string</span> <span class="param-name">value</span> = "" ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks an event<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEvent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEvent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEvent documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackGoal</a></span> ( <span class="param-type">int</span> <span class="param-name">idGoal</span>, <span class="param-type">float</span> <span class="param-name">revenue</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Records a Goal conversion<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackGoal/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackGoal"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackGoal documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackPageView</a></span> ( <span class="param-type">string</span> <span class="param-name">documentTitle</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks a page view<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/doTrackPageView/php-piwiktracker-dotrackpageview-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::doTrackPageView"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackPageView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackPageView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackPageView documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackSiteSearch</a></span> ( <span class="param-type">string</span> <span class="param-name">keyword</span>, <span class="param-type">string</span> <span class="param-name">category</span> = "", <span class="param-type">int</span> <span class="param-name">countResults</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> <p>Tracks an internal Site Search query, and optionally tracks the Search Category, and Search results Count. These are used to populate reports in Actions > Site Search.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackSiteSearch/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackSiteSearch"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackSiteSearch documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">enableBulkTracking</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Enables the bulk request feature. When used, each tracking action is stored until the doBulkTrack method is called. This method will send all tracking data at once.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/enableBulkTracking/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::enableBulkTracking"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::enableBulkTracking documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">enableCookies</a></span> ( <span class="param-type">string</span> <span class="param-name">domain</span> = "", <span class="param-type">string</span> <span class="param-name">path</span> = "/" ) : <span class="return-type">void</span> </td> <td> <p>Enable Cookie Creation - this will cause a first party VisitorId cookie to be set when the VisitorId is set or reset<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/enableCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::enableCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::enableCookies documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getAttributionInfo</a></span> ( ) : <span class="return-type">Piwik.Tracker.AttributionInfo</span> </td> <td> <p>Returns the currently assigned Attribution Information stored in a first party cookie. This function will only work if the user is initiating the current request, and his cookies can be read from an active HttpContext.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getAttributionInfo/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getAttributionInfo"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getAttributionInfo documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomTrackingParameter</a></span> ( <span class="param-type">string</span> <span class="param-name">trackingApiParameter</span> ) : <span class="return-type">string</span> </td> <td> <p>Returns the currently assigned value for the given custom tracking parameter<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomTrackingParameter/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomTrackingParameter"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomTrackingParameter documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomVariable</a></span> ( <span class="param-type">int</span> <span class="param-name">id</span>, <span class="param-type">Piwik.Tracker.CustomVar</span> <span class="param-name">scope</span> = CustomVar.Scopes.visit ) : <span class="return-type">Piwik.Tracker.CustomVar</span> </td> <td> <p>Returns the currently assigned Custom Variable. If scope is 'visit', it will attempt to read the value set in the first party cookie created by Piwik Tracker ($_COOKIE array).<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomVariable/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomVariable"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomVariable documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getProxy</a></span> ( ) : <span class="return-type">IWebProxy</span> </td> <td> <p>Gets the proxy used for web-requests, or <code>null</code> if no proxy is used.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getProxy/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getProxy"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getProxy documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getRequestTimeout</a></span> ( ) : <span class="return-type">int</span> </td> <td> <p>Returns the maximum number of seconds the tracker will spend waiting for a response from Piwik. Defaults to 600 seconds.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getRequestTimeout/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getRequestTimeout"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getRequestTimeout documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackAction</a></span> ( <span class="param-type">string</span> <span class="param-name">actionUrl</span>, <span class="param-type">ActionType</span> <span class="param-name">actionType</span> ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a new action.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackAction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackAction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackAction documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackContentImpression</a></span> ( <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span>, <span class="param-type">string</span> <span class="param-name">contentTarget</span> ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a content impression.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackContentImpression/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackContentImpression"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackContentImpression documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackContentInteraction</a></span> ( <span class="param-type">string</span> <span class="param-name">interaction</span>, <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span>, <span class="param-type">string</span> <span class="param-name">contentTarget</span> ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a content impression.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackContentInteraction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackContentInteraction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackContentInteraction documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEcommerceOrder</a></span> ( <span class="param-type">string</span> <span class="param-name">orderId</span>, <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type">string</span> </td> <td> <p>Returns URL used to track Ecommerce Orders Calling this function will reinitializes the property ecommerceItems to empty array so items will have to be added again via addEcommerceItem()<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEcommerceOrder/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceOrder"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceOrder documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEvent</a></span> ( <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">string</span> <span class="param-name">action</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">string</span> <span class="param-name">value</span> = "" ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a custom event.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEvent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEvent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEvent documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackGoal</a></span> ( <span class="param-type">int</span> <span class="param-name">idGoal</span>, <span class="param-type">float</span> <span class="param-name">revenue</span> ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a goal with idGoal and revenue.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackGoal/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackGoal"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackGoal documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackPageView</a></span> ( <span class="param-type">string</span> <span class="param-name">documentTitle</span> = "" ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a page view.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackPageView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackPageView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackPageView documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackSiteSearch</a></span> ( <span class="param-type">string</span> <span class="param-name">keyword</span>, <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">int</span> <span class="param-name">countResults</span> ) : <span class="return-type">string</span> </td> <td> <p>Builds URL to track a site search.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackSiteSearch/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackSiteSearch"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackSiteSearch documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUserId</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>Returns the User ID string, which may have been set via: $v->setUserId('username@example.org');<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUserId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUserId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUserId documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUserIdHashed</a></span> ( <span class="param-type">string</span> <span class="param-name">id</span> ) : <span class="return-type">string</span> </td> <td> <p>Hash function used internally by Piwik to hash a User ID into the Visitor ID. Note: matches implementation of Tracker\Request->getUserIdHashed()<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUserIdHashed/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUserIdHashed"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUserIdHashed documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getVisitorId</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>If the user initiating the request has the Piwik first party cookie, this function will try and return the ID parsed from this first party cookie. If you call this function from a server, where the call is triggered by a cron or script not initiated by the actual visitor being tracked, then it will return the random Visitor ID that was assigned to this visit object. This can be used if you wish to record more visits, actions or goals for this visitor ID later on.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getVisitorId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getVisitorId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getVisitorId documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setAttributionInfo</a></span> ( <span class="param-type">Piwik.Tracker.AttributionInfo</span> <span class="param-name">attributionInfo</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the attribution information to the visit, so that subsequent Goal conversions are properly attributed to the right Referrer URL, timestamp, Campaign Name & Keyword. If you call enableCookies() then these referral attribution values will be set to the 'ref' first party cookie storing referral information.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setAttributionInfo/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setAttributionInfo"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setAttributionInfo documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setBrowserHasCookies</a></span> ( <span class="param-type">bool</span> <span class="param-name">hasCookies</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets if the browser supports cookies This is reported in "List of plugins" report in Piwik.<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setBrowserHasCookies/php-piwiktracker-setbrowserhascookies-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setBrowserHasCookies"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setBrowserHasCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setBrowserHasCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setBrowserHasCookies documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setBrowserLanguage</a></span> ( <span class="param-type">string</span> <span class="param-name">acceptLanguage</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the Browser language. Used to guess visitor countries when GeoIP is not enabled<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setBrowserLanguage/php-piwiktracker-setbrowserlanguage-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setBrowserLanguage"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setBrowserLanguage/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setBrowserLanguage"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setBrowserLanguage documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCity</a></span> ( <span class="param-type">string</span> <span class="param-name">city</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the city of the visitor. If not used, Piwik may try to find the city using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCity/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCity"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCity documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCountry</a></span> ( <span class="param-type">string</span> <span class="param-name">country</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the country of the visitor. If not used, Piwik will try to find the country using either the visitor's IP address or language. Allowed only for Admin/Super User, must be used along with setTokenAuth().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCountry/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCountry"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCountry documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCustomTrackingParameter</a></span> ( <span class="param-type">string</span> <span class="param-name">trackingApiParameter</span>, <span class="param-type">string</span> <span class="param-name">value</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets a custom tracking parameter <p></p> To track custom dimensions use 'dimension{#}' as the value for <span class="highlight">trackingApiParameter</span>, e.g. dimension1.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCustomTrackingParameter/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCustomTrackingParameter"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCustomTrackingParameter documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCustomVariable</a></span> ( <span class="param-type">int</span> <span class="param-name">id</span>, <span class="param-type">string</span> <span class="param-name">name</span>, <span class="param-type">string</span> <span class="param-name">value</span>, <span class="param-type">Piwik.Tracker.CustomVar</span> <span class="param-name">scope</span> = CustomVar.Scopes.visit ) : <span class="return-type">void</span> </td> <td> <p>Sets Visit Custom Variable. See http://piwik.org/docs/custom-variables/<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCustomVariable/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCustomVariable"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCustomVariable documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setDebugStringAppend</a></span> ( <span class="param-type">string</span> <span class="param-name">debugString</span> ) : <span class="return-type">void</span> </td> <td> <p>Will append a custom string at the end of the Tracking request.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setDebugStringAppend/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setDebugStringAppend"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setDebugStringAppend documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setEcommerceView</a></span> ( <span class="param-type">string</span> <span class="param-name">sku</span> = "", <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">List<string></span> <span class="param-name">categories</span> = null, <span class="param-type">double</span> <span class="param-name">price</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the current page view as an item (product) page view, or an Ecommerce Category page view. This must be called before doTrackPageView() on this product/category page. It will set 3 custom variables of scope "page" with the SKU, Name and Category for this page view. Note: Custom Variables of scope "page" slots 3, 4 and 5 will be used. On a category page, you may set the parameter $category only and set the other parameters to false. Tracking Product/Category page views will allow Piwik to report on Product & Categories conversion rates (Conversion rate = Ecommerce orders containing this product or category / Visits to the product or category)<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setEcommerceView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setEcommerceView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setEcommerceView documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setForceNewVisit</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Forces Piwik to create a new visit for the tracking request. By default, Piwik will create a new visit if the last request by this user was more than 30 minutes ago. If you call setForceNewVisit() before calling doTrack*, then a new visit will be created for this request.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setForceNewVisit/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setForceNewVisit"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setForceNewVisit documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setForceVisitDateTime</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">dateTime</span> ) : <span class="return-type">void</span> </td> <td> <p>Overrides server date and time for the tracking requests. By default Piwik will track requests for the "current datetime" but this function allows you to track visits in the past. All times are in UTC. Allowed only for Super User, must be used along with setTokenAuth()<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setForceVisitDateTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setForceVisitDateTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setForceVisitDateTime documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setGenerationTime</a></span> ( <span class="param-type">int</span> <span class="param-name">timeMs</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the time that generating the document on the server side took.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setGenerationTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setGenerationTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setGenerationTime documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setIdSite</a></span> ( <span class="param-type">int</span> <span class="param-name">idSite</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the current site ID.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setIdSite/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setIdSite"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setIdSite documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setIp</a></span> ( <span class="param-type">string</span> <span class="param-name">ip</span> ) : <span class="return-type">void</span> </td> <td> <p>Overrides IP address Allowed only for Super User, must be used along with setTokenAuth()<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setIp/php-piwiktracker-setip-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setIp"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setIp/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setIp"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setIp documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLatitude</a></span> ( <span class="param-type">float</span> <span class="param-name">lat</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the latitude of the visitor. If not used, Piwik may try to find the visitor's latitude using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLatitude/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLatitude"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLatitude documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLocalTime</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">localTime</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets local visitor time<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLocalTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLocalTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLocalTime documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLongitude</a></span> ( <span class="param-type">float</span> <span class="param-name">longitude</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the longitude of the visitor. If not used, Piwik may try to find the visitor's longitude using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLongitude/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLongitude"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLongitude documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setNewVisitorId</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Sets the current visitor ID to a random new one.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setNewVisitorId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setNewVisitorId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setNewVisitorId documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setPageCharset</a></span> ( <span class="param-type">string</span> <span class="param-name">charset</span> = "" ) : <span class="return-type">void</span> </td> <td> <p>By default, Piwik expects utf-8 encoded values, for example for the page URL parameter values, Page Title, etc. It is recommended to only send UTF-8 data to Piwik. If required though, you can also specify another charset using this function.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setPageCharset/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setPageCharset"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setPageCharset documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setPlugins</a></span> ( <span class="param-type">Piwik.Tracker.BrowserPlugins</span> <span class="param-name">browserPlugins</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets visitor browser supported plugins<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setPlugins/php-piwiktracker-setplugins-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setPlugins"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setPlugins/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setPlugins"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setPlugins documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setProxy</a></span> ( <span class="param-type">IWebProxy</span> <span class="param-name">proxy</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the proxy used for web-requests.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setProxy/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setProxy"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setProxy documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setRegion</a></span> ( <span class="param-type">string</span> <span class="param-name">region</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the region of the visitor. If not used, Piwik may try to find the region using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth().<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setRegion/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setRegion"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setRegion documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setRequestTimeout</a></span> ( <span class="param-type">int</span> <span class="param-name">timeout</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the maximum number of seconds that the tracker will spend waiting for a response from Piwik.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setRequestTimeout/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setRequestTimeout"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setRequestTimeout documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setResolution</a></span> ( <span class="param-type">int</span> <span class="param-name">width</span>, <span class="param-type">int</span> <span class="param-name">height</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets user resolution width and height.<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setResolution/php-piwiktracker-setresolution-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setResolution"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setResolution/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setResolution"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setResolution documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setTokenAuth</a></span> ( <span class="param-type">string</span> <span class="param-name">token_auth</span> ) : <span class="return-type">void</span> </td> <td> <p>Some Tracking API functionnality requires express authentication, using either the Super User token_auth, or a user with 'admin' access to the website. The following features require access: - force the visitor IP - force the date & time of the tracking requests rather than track for the current datetime<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setTokenAuth/php-piwiktracker-settokenauth-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setTokenAuth"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setTokenAuth/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setTokenAuth"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setTokenAuth documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUrl</a></span> ( <span class="param-type">string</span> <span class="param-name">url</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the current URL being tracked<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUrl/php-piwiktracker-seturl-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUrl"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUrl documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUrlReferrer</a></span> ( <span class="param-type">string</span> <span class="param-name">url</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the URL referrer used to track Referrers details for new visits.<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUrlReferrer/php-piwiktracker-seturlreferrer-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUrlReferrer"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUrlReferrer/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUrlReferrer"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUrlReferrer documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUserAgent</a></span> ( <span class="param-type">string</span> <span class="param-name">userAgent</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets the user agent, used to detect OS and browser. If this function is not called, the User Agent will default to the current user agent if there is an active HttpContext<p> </td> <td class="actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUserAgent/php-piwiktracker-setuseragent-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUserAgent"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUserAgent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUserAgent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUserAgent documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUserId</a></span> ( <span class="param-type">string</span> <span class="param-name">userId</span> ) : <span class="return-type">void</span> </td> <td> <p>Force the action to be recorded for a specific User. The User ID is a string representing a given user in your system. A User ID can be a username, UUID or an email address, or any number or string that uniquely identifies a user or client.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUserId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUserId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUserId documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> </table> <h2>Protected Methods</h2> <table class="table table-striped"> <tr> <th>Method</th> <th>Description</th> <th></th> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">domainFixup</a></span> ( <span class="param-type">string</span> <span class="param-name">domain</span> ) : <span class="return-type">string</span> </td> <td> <p>Fix-up domain<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/domainFixup/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::domainFixup"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::domainFixup documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getBaseUrl</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>Returns the base URL for the piwik server.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getBaseUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getBaseUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getBaseUrl documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCookieName</a></span> ( <span class="param-type">string</span> <span class="param-name">cookieName</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCookieName/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCookieName"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCookieName documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentHost</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "http://example.org"<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentHost/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentHost"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentHost documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentQueryString</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "?param1=value1¶m2=value2"<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentQueryString/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentQueryString"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentQueryString documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentScheme</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>If the current URL is 'http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return 'http'<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentScheme/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentScheme"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentScheme documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentScriptName</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "/dir1/dir2/index.php"<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentScriptName/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentScriptName"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentScriptName documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentUrl</a></span> ( ) : <span class="return-type">string</span> </td> <td> <p>Returns the current full URL (scheme, host, path and query string.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentUrl documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomVariablesFromCookie</a></span> ( ) : <span class="return-type">string[]>.Dictionary<string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomVariablesFromCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomVariablesFromCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomVariablesFromCookie documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getHexStringFromBytes</a></span> ( <span class="param-type">byte</span> <span class="param-name">bytes</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getHexStringFromBytes/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getHexStringFromBytes"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getHexStringFromBytes documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEcommerce</a></span> ( <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type">string</span> </td> <td> <p>Returns URL used to track Ecommerce orders Calling this function will reinitializes the property ecommerceItems to empty array so items will have to be added again via addEcommerceItem()<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEcommerce/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerce"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerce documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">loadVisitorIdCookie</a></span> ( ) : <span class="return-type">bool</span> </td> <td> <p>Loads values from the VisitorId Cookie<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/loadVisitorIdCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::loadVisitorIdCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::loadVisitorIdCookie documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCookie</a></span> ( <span class="param-type">string</span> <span class="param-name">cookieName</span>, <span class="param-type">string</span> <span class="param-name">cookieValue</span>, <span class="param-type">long</span> <span class="param-name">cookieTTL</span> ) : <span class="return-type">void</span> </td> <td> <p>Sets a first party cookie to the client to improve dual JS-PHP tracking. This replicates the piwik.js tracker algorithms for consistency and better accuracy.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCookie documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setFirstPartyCookies</a></span> ( ) : <span class="return-type">void</span> </td> <td> <p>Sets the first party cookies as would the piwik.js All cookies are supported: 'id' and 'ses' and 'ref' and 'cvar' cookies.<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setFirstPartyCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setFirstPartyCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setFirstPartyCookies documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> </table> <h2>Private Methods</h2> <table class="table table-striped"> <tr> <th>Method</th> <th>Description</th> <th></th> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">formatDateValue</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">date</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/formatDateValue/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::formatDateValue"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::formatDateValue documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">formatGeoLocationValue</a></span> ( <span class="param-type">float</span> <span class="param-name">value</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/formatGeoLocationValue/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::formatGeoLocationValue"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::formatGeoLocationValue documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">formatMonetaryValue</a></span> ( <span class="param-type">double</span> <span class="param-name">value</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/formatMonetaryValue/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::formatMonetaryValue"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::formatMonetaryValue documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">formatTimestamp</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">date</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/formatTimestamp/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::formatTimestamp"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::formatTimestamp documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCookieMatchingName</a></span> ( <span class="param-type">string</span> <span class="param-name">name</span> ) : <span class="return-type">System.Web.HttpCookie</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCookieMatchingName/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCookieMatchingName"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCookieMatchingName documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getRequest</a></span> ( <span class="param-type">int</span> <span class="param-name">idSite</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getRequest/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getRequest"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getRequest documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEcommerceCartUpdate</a></span> ( <span class="param-type">double</span> <span class="param-name">grandTotal</span> ) : <span class="return-type">string</span> </td> <td> <p>Returns URL used to track Ecommerce Cart updates Calling this function will reinitializes the property ecommerceItems to empty array so items will have to be added again via addEcommerceItem()<p> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEcommerceCartUpdate/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceCartUpdate"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceCartUpdate documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">sendRequest</a></span> ( <span class="param-type">string</span> <span class="param-name">url</span>, <span class="param-type">string</span> <span class="param-name">method</span> = "GET", <span class="param-type">string</span> <span class="param-name">data</span> = null, <span class="param-type">bool</span> <span class="param-name">force</span> = false ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/sendRequest/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::sendRequest"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::sendRequest documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setVisitorId</a></span> ( <span class="param-type">string</span> <span class="param-name">visitorId</span> ) : <span class="return-type">void</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setVisitorId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setVisitorId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setVisitorId documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> <tr class="method-descr"> <td> <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">urlEncode</a></span> ( <span class="param-type">string</span> <span class="param-name">value</span> ) : <span class="return-type">string</span> </td> <td> </td> <td class="actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/urlEncode/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::urlEncode"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::urlEncode documentation"><i class='icon-borderless icon-link'></i></a> </td> </tr> </table> <h2>Method Details</h2> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> PiwikTracker() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/PiwikTracker/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::PiwikTracker"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::PiwikTracker documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds a PiwikTracker object, used to track visits, pages and Goal conversions for a specific website, by using the Piwik Tracking API. If the tracker is used within a web page or web controller, the following information are pre-initialised : URL Referrer, current page URL, remote IP, Accept-Language HTTP header and User-Agent HTTP header. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">PiwikTracker</a></span> ( <span class="param-type">int</span> <span class="param-name">idSite</span>, <span class="param-type">string</span> <span class="param-name">apiUrl</span> = "" ) : <span class="return-type">System</span> </td> </tr> <tr> <td class="param-name"> idSite </td> <td class="param-type">int</td> <td>Id site to be tracked</td> </tr> <tr> <td class="param-name"> apiUrl </td> <td class="param-type">string</td> <td>"http://example.org/piwik/" or "http://piwik.example.org/". If set, will overwrite PiwikTracker.URL</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">System</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> addEcommerceItem() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/addEcommerceItem/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::addEcommerceItem"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::addEcommerceItem documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Adds an item in the Ecommerce order. This should be called before doTrackEcommerceOrder(), or before doTrackEcommerceCartUpdate(). This function can be called for all individual products in the cart (or order). SKU parameter is mandatory. Other parameters are optional (set to false if value not known). Ecommerce items added via this function are automatically cleared when doTrackEcommerceOrder() or getUrlTrackEcommerceOrder() is called. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">addEcommerceItem</a></span> ( <span class="param-type">string</span> <span class="param-name">sku</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">List<string></span> <span class="param-name">categories</span> = null, <span class="param-type">double</span> <span class="param-name">price</span>, <span class="param-type">ulong</span> <span class="param-name">quantity</span> = 1 ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> sku </td> <td class="param-type">string</td> <td>SKU, Product identifier </td> </tr> <tr> <td class="param-name"> name </td> <td class="param-type">string</td> <td>Product name</td> </tr> <tr> <td class="param-name"> categories </td> <td class="param-type">List<string></td> <td>Array of product categories (up to 5 categories can be specified for a given product)</td> </tr> <tr> <td class="param-name"> price </td> <td class="param-type">double</td> <td> Individual product price (supports integer and decimal prices)</td> </tr> <tr> <td class="param-name"> quantity </td> <td class="param-type">ulong</td> <td>Product quantity. If not specified, will default to 1 in the Reports</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> clearCustomTrackingParameters() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/clearCustomTrackingParameters/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::clearCustomTrackingParameters"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::clearCustomTrackingParameters documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Clears any custom tracking parameters that have been set. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">clearCustomTrackingParameters</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> clearCustomVariables() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/clearCustomVariables/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::clearCustomVariables"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::clearCustomVariables documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Clears any Custom Variable that may be have been set. This can be useful when you have enabled bulk requests, and you wish to clear Custom Variables of 'visit' scope. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">clearCustomVariables</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> deleteCookies() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/deleteCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::deleteCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::deleteCookies documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Deletes all first party cookies from the client </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">deleteCookies</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> disableCookieSupport() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/disableCookieSupport/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::disableCookieSupport"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::disableCookieSupport documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> By default, PiwikTracker will read first party cookies from the request and write updated cookies in the response (using setrawcookie). This can be disabled by calling this function. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">disableCookieSupport</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> disableSendImageResponse() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/disableSendImageResponse/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::disableSendImageResponse"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::disableSendImageResponse documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If image response is disabled Piwik will respond with a HTTP 204 header instead of responding with a gif. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">disableSendImageResponse</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doBulkTrack() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doBulkTrack/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doBulkTrack"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doBulkTrack documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sends all stored tracking actions at once. Only has an effect if bulk tracking is enabled. To enable bulk tracking, call enableBulkTracking(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doBulkTrack</a></span> ( ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doPing() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doPing/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doPing"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doPing documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sends a ping request. Ping requests do not track new actions. If they are sent within the standard visit length (see global.ini.php), they will extend the existing visit and the current last action for the visit. If after the standard visit length, ping requests will create a new visit using the last action in the last known visit. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doPing</a></span> ( ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackAction() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/doTrackAction/php-piwiktracker-dotrackaction-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::doTrackAction"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackAction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackAction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackAction documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks a download or outlink </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackAction</a></span> ( <span class="param-type">string</span> <span class="param-name">actionUrl</span>, <span class="param-type">ActionType</span> <span class="param-name">actionType</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> actionUrl </td> <td class="param-type">string</td> <td>URL of the download or outlink</td> </tr> <tr> <td class="param-name"> actionType </td> <td class="param-type">ActionType</td> <td>Type of the action: 'download' or 'link'</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackContentImpression() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackContentImpression/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackContentImpression"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackContentImpression documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks a content impression </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackContentImpression</a></span> ( <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span> = "Unknown", <span class="param-type">string</span> <span class="param-name">contentTarget</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> contentName </td> <td class="param-type">string</td> <td>The name of the content. For instance 'Ad Foo Bar'</td> </tr> <tr> <td class="param-name"> contentPiece </td> <td class="param-type">string</td> <td>The actual content. For instance the path to an image, video, audio, any text</td> </tr> <tr> <td class="param-name"> contentTarget </td> <td class="param-type">string</td> <td>(optional) The target of the content. For instance the URL of a landing page.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackContentInteraction() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackContentInteraction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackContentInteraction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackContentInteraction documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks a content interaction. Make sure you have tracked a content impression using the same content name and content piece, otherwise it will not count. To do so you should call the method doTrackContentImpression(); </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackContentInteraction</a></span> ( <span class="param-type">string</span> <span class="param-name">interaction</span>, <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span> = "Unknown", <span class="param-type">string</span> <span class="param-name">contentTarget</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> interaction </td> <td class="param-type">string</td> <td>The name of the interaction with the content. For instance a 'click'</td> </tr> <tr> <td class="param-name"> contentName </td> <td class="param-type">string</td> <td>The name of the content. For instance 'Ad Foo Bar'</td> </tr> <tr> <td class="param-name"> contentPiece </td> <td class="param-type">string</td> <td>The actual content. For instance the path to an image, video, audio, any text</td> </tr> <tr> <td class="param-name"> contentTarget </td> <td class="param-type">string</td> <td>(optional) The target the content leading to when an interaction occurs. For instance the URL of a landing page.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackEcommerceCartUpdate() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEcommerceCartUpdate/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEcommerceCartUpdate"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEcommerceCartUpdate documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks a Cart Update (add item, remove item, update item). On every Cart update, you must call addEcommerceItem() for each item (product) in the cart, including the items that haven't been updated since the last cart update. Items which were in the previous cart and are not sent in later Cart updates will be deleted from the cart (in the database). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEcommerceCartUpdate</a></span> ( <span class="param-type">double</span> <span class="param-name">grandTotal</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> grandTotal </td> <td class="param-type">double</td> <td>Cart grandTotal (typically the sum of all items' prices)</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackEcommerceOrder() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEcommerceOrder/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEcommerceOrder"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEcommerceOrder documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks an Ecommerce order. If the Ecommerce order contains items (products), you must call first the addEcommerceItem() for each item in the order. All revenues (grandTotal, subTotal, tax, shipping, discount) will be individually summed and reported in Piwik reports. Only the parameters $orderId and $grandTotal are required. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEcommerceOrder</a></span> ( <span class="param-type">string</span> <span class="param-name">orderId</span>, <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> orderId </td> <td class="param-type">string</td> <td>Unique Order ID. This will be used to count this order only once in the event the order page is reloaded several times. orderId must be unique for each transaction, even on different days, or the transaction will not be recorded by Piwik.</td> </tr> <tr> <td class="param-name"> grandTotal </td> <td class="param-type">double</td> <td>Grand Total revenue of the transaction (including tax, shipping, etc.)</td> </tr> <tr> <td class="param-name"> subTotal </td> <td class="param-type">double</td> <td>Sub total amount, typically the sum of items prices for all items in this order (before Tax and Shipping costs are applied)</td> </tr> <tr> <td class="param-name"> tax </td> <td class="param-type">double</td> <td>Tax amount for this order</td> </tr> <tr> <td class="param-name"> shipping </td> <td class="param-type">double</td> <td>Shipping amount for this order</td> </tr> <tr> <td class="param-name"> discount </td> <td class="param-type">double</td> <td>Discounted amount in this order</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackEvent() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackEvent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackEvent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackEvent documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks an event </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackEvent</a></span> ( <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">string</span> <span class="param-name">action</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">string</span> <span class="param-name">value</span> = "" ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> category </td> <td class="param-type">string</td> <td>The Event Category (Videos, Music, Games...)</td> </tr> <tr> <td class="param-name"> action </td> <td class="param-type">string</td> <td>The Event's Action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)</td> </tr> <tr> <td class="param-name"> name </td> <td class="param-type">string</td> <td>(optional) The Event's object Name (a particular Movie name, or Song name, or File name...)</td> </tr> <tr> <td class="param-name"> value </td> <td class="param-type">string</td> <td>(optional) The Event's value</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackGoal() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackGoal/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackGoal"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackGoal documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Records a Goal conversion </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackGoal</a></span> ( <span class="param-type">int</span> <span class="param-name">idGoal</span>, <span class="param-type">float</span> <span class="param-name">revenue</span> ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> idGoal </td> <td class="param-type">int</td> <td>Id Goal to record a conversion</td> </tr> <tr> <td class="param-name"> revenue </td> <td class="param-type">float</td> <td>Revenue for this conversion</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackPageView() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/doTrackPageView/php-piwiktracker-dotrackpageview-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::doTrackPageView"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackPageView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackPageView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackPageView documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks a page view </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackPageView</a></span> ( <span class="param-type">string</span> <span class="param-name">documentTitle</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> documentTitle </td> <td class="param-type">string</td> <td>Page title as it will appear in the Actions > Page titles report</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> doTrackSiteSearch() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/doTrackSiteSearch/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::doTrackSiteSearch"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::doTrackSiteSearch documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Tracks an internal Site Search query, and optionally tracks the Search Category, and Search results Count. These are used to populate reports in Actions > Site Search. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">doTrackSiteSearch</a></span> ( <span class="param-type">string</span> <span class="param-name">keyword</span>, <span class="param-type">string</span> <span class="param-name">category</span> = "", <span class="param-type">int</span> <span class="param-name">countResults</span> = null ) : <span class="return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></span> </td> </tr> <tr> <td class="param-name"> keyword </td> <td class="param-type">string</td> <td>Searched query on the site</td> </tr> <tr> <td class="param-name"> category </td> <td class="param-type">string</td> <td>(optional) Search engine category if applicable</td> </tr> <tr> <td class="param-name"> countResults </td> <td class="param-type">int</td> <td>(optional) results displayed on the search result page. Used to track "zero result" keywords.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type"><ahref="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/TrackingResponse">TrackingResponse</a></td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> domainFixup() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/domainFixup/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::domainFixup"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::domainFixup documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Fix-up domain </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">domainFixup</a></span> ( <span class="param-type">string</span> <span class="param-name">domain</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> domain </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> enableBulkTracking() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/enableBulkTracking/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::enableBulkTracking"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::enableBulkTracking documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Enables the bulk request feature. When used, each tracking action is stored until the doBulkTrack method is called. This method will send all tracking data at once. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">enableBulkTracking</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> enableCookies() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/enableCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::enableCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::enableCookies documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Enable Cookie Creation - this will cause a first party VisitorId cookie to be set when the VisitorId is set or reset </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">enableCookies</a></span> ( <span class="param-type">string</span> <span class="param-name">domain</span> = "", <span class="param-type">string</span> <span class="param-name">path</span> = "/" ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> domain </td> <td class="param-type">string</td> <td>(optional) Set first-party cookie domain. Accepted values: example.com, *.example.com (same as .example.com) or subdomain.example.com</td> </tr> <tr> <td class="param-name"> path </td> <td class="param-type">string</td> <td>(optional) Set first-party cookie path</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getAttributionInfo() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getAttributionInfo/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getAttributionInfo"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getAttributionInfo documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the currently assigned Attribution Information stored in a first party cookie. This function will only work if the user is initiating the current request, and his cookies can be read from an active HttpContext. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getAttributionInfo</a></span> ( ) : <span class="return-type">Piwik.Tracker.AttributionInfo</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">Piwik.Tracker.AttributionInfo</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getBaseUrl() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getBaseUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getBaseUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getBaseUrl documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the base URL for the piwik server. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getBaseUrl</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCookieName() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCookieName/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCookieName"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCookieName documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCookieName</a></span> ( <span class="param-type">string</span> <span class="param-name">cookieName</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> cookieName </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCurrentHost() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentHost/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentHost"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentHost documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "http://example.org" </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentHost</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCurrentQueryString() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentQueryString/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentQueryString"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentQueryString documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "?param1=value1¶m2=value2" </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentQueryString</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCurrentScheme() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentScheme/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentScheme"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentScheme documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If the current URL is 'http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return 'http' </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentScheme</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCurrentScriptName() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentScriptName/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentScriptName"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentScriptName documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If current URL is "http://example.org/dir1/dir2/index.php?param1=value1¶m2=value2" will return "/dir1/dir2/index.php" </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentScriptName</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCurrentUrl() <span class="modifier">protected</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCurrentUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCurrentUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCurrentUrl documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the current full URL (scheme, host, path and query string. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCurrentUrl</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCustomTrackingParameter() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomTrackingParameter/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomTrackingParameter"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomTrackingParameter documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the currently assigned value for the given custom tracking parameter </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomTrackingParameter</a></span> ( <span class="param-type">string</span> <span class="param-name">trackingApiParameter</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> trackingApiParameter </td> <td class="param-type">string</td> <td>The name of the custom tracking parameter</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCustomVariable() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomVariable/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomVariable"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomVariable documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the currently assigned Custom Variable. If scope is 'visit', it will attempt to read the value set in the first party cookie created by Piwik Tracker ($_COOKIE array). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomVariable</a></span> ( <span class="param-type">int</span> <span class="param-name">id</span>, <span class="param-type">Piwik.Tracker.CustomVar</span> <span class="param-name">scope</span> = CustomVar.Scopes.visit ) : <span class="return-type">Piwik.Tracker.CustomVar</span> </td> </tr> <tr> <td class="param-name"> id </td> <td class="param-type">int</td> <td>Custom Variable integer index to fetch from cookie. Should be a value from 1 to 5</td> </tr> <tr> <td class="param-name"> scope </td> <td class="param-type">Piwik.Tracker.CustomVar</td> <td>Custom variable scope. Possible values: visit, page, event</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">Piwik.Tracker.CustomVar</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getCustomVariablesFromCookie() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getCustomVariablesFromCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getCustomVariablesFromCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getCustomVariablesFromCookie documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getCustomVariablesFromCookie</a></span> ( ) : <span class="return-type">string[]>.Dictionary<string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string[]>.Dictionary<string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getHexStringFromBytes() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getHexStringFromBytes/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getHexStringFromBytes"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getHexStringFromBytes documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getHexStringFromBytes</a></span> ( <span class="param-type">byte</span> <span class="param-name">bytes</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> bytes </td> <td class="param-type">byte</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getProxy() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getProxy/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getProxy"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getProxy documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Gets the proxy used for web-requests, or <code>null</code> if no proxy is used. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getProxy</a></span> ( ) : <span class="return-type">IWebProxy</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">IWebProxy</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getRequestTimeout() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getRequestTimeout/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getRequestTimeout"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getRequestTimeout documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the maximum number of seconds the tracker will spend waiting for a response from Piwik. Defaults to 600 seconds. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getRequestTimeout</a></span> ( ) : <span class="return-type">int</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">int</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackAction() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackAction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackAction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackAction documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a new action. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackAction</a></span> ( <span class="param-type">string</span> <span class="param-name">actionUrl</span>, <span class="param-type">ActionType</span> <span class="param-name">actionType</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> actionUrl </td> <td class="param-type">string</td> <td>URL of the download or outlink</td> </tr> <tr> <td class="param-name"> actionType </td> <td class="param-type">ActionType</td> <td>Type of the action: 'download' or 'link'</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackContentImpression() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackContentImpression/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackContentImpression"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackContentImpression documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a content impression. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> In case $contentName is empty </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackContentImpression</a></span> ( <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span>, <span class="param-type">string</span> <span class="param-name">contentTarget</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> contentName </td> <td class="param-type">string</td> <td>The name of the content. For instance 'Ad Foo Bar'</td> </tr> <tr> <td class="param-name"> contentPiece </td> <td class="param-type">string</td> <td>The actual content. For instance the path to an image, video, audio, any text</td> </tr> <tr> <td class="param-name"> contentTarget </td> <td class="param-type">string</td> <td>(optional) The target of the content. For instance the URL of a landing page.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackContentInteraction() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackContentInteraction/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackContentInteraction"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackContentInteraction documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a content impression. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> In case $interaction or $contentName is empty </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackContentInteraction</a></span> ( <span class="param-type">string</span> <span class="param-name">interaction</span>, <span class="param-type">string</span> <span class="param-name">contentName</span>, <span class="param-type">string</span> <span class="param-name">contentPiece</span>, <span class="param-type">string</span> <span class="param-name">contentTarget</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> interaction </td> <td class="param-type">string</td> <td>The name of the interaction with the content. For instance a 'click'</td> </tr> <tr> <td class="param-name"> contentName </td> <td class="param-type">string</td> <td>The name of the content. For instance 'Ad Foo Bar'</td> </tr> <tr> <td class="param-name"> contentPiece </td> <td class="param-type">string</td> <td>The actual content. For instance the path to an image, video, audio, any text</td> </tr> <tr> <td class="param-name"> contentTarget </td> <td class="param-type">string</td> <td>(optional) The target the content leading to when an interaction occurs. For instance the URL of a landing page.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackEcommerce() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEcommerce/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerce"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerce documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns URL used to track Ecommerce orders Calling this function will reinitializes the property ecommerceItems to empty array so items will have to be added again via addEcommerceItem() </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEcommerce</a></span> ( <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> grandTotal </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> subTotal </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> tax </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> shipping </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> discount </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackEcommerceOrder() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEcommerceOrder/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceOrder"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEcommerceOrder documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns URL used to track Ecommerce Orders Calling this function will reinitializes the property ecommerceItems to empty array so items will have to be added again via addEcommerceItem() </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEcommerceOrder</a></span> ( <span class="param-type">string</span> <span class="param-name">orderId</span>, <span class="param-type">double</span> <span class="param-name">grandTotal</span>, <span class="param-type">double</span> <span class="param-name">subTotal</span>, <span class="param-type">double</span> <span class="param-name">tax</span>, <span class="param-type">double</span> <span class="param-name">shipping</span>, <span class="param-type">double</span> <span class="param-name">discount</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> orderId </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="param-name"> grandTotal </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> subTotal </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> tax </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> shipping </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="param-name"> discount </td> <td class="param-type">double</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackEvent() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackEvent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackEvent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackEvent documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a custom event. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackEvent</a></span> ( <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">string</span> <span class="param-name">action</span>, <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">string</span> <span class="param-name">value</span> = "" ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> category </td> <td class="param-type">string</td> <td>The Event Category (Videos, Music, Games...)</td> </tr> <tr> <td class="param-name"> action </td> <td class="param-type">string</td> <td>The Event's Action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)</td> </tr> <tr> <td class="param-name"> name </td> <td class="param-type">string</td> <td>(optional) The Event's object Name (a particular Movie name, or Song name, or File name...)</td> </tr> <tr> <td class="param-name"> value </td> <td class="param-type">string</td> <td>(optional) The Event's value</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackGoal() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackGoal/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackGoal"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackGoal documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a goal with idGoal and revenue. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackGoal</a></span> ( <span class="param-type">int</span> <span class="param-name">idGoal</span>, <span class="param-type">float</span> <span class="param-name">revenue</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> idGoal </td> <td class="param-type">int</td> <td>Id Goal to record a conversion</td> </tr> <tr> <td class="param-name"> revenue </td> <td class="param-type">float</td> <td>Revenue for this conversion</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackPageView() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackPageView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackPageView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackPageView documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a page view. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackPageView</a></span> ( <span class="param-type">string</span> <span class="param-name">documentTitle</span> = "" ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> documentTitle </td> <td class="param-type">string</td> <td>Page view name as it will appear in Piwik reports</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUrlTrackSiteSearch() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUrlTrackSiteSearch/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUrlTrackSiteSearch"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUrlTrackSiteSearch documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Builds URL to track a site search. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUrlTrackSiteSearch</a></span> ( <span class="param-type">string</span> <span class="param-name">keyword</span>, <span class="param-type">string</span> <span class="param-name">category</span>, <span class="param-type">int</span> <span class="param-name">countResults</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> keyword </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="param-name"> category </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="param-name"> countResults </td> <td class="param-type">int</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUserId() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUserId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUserId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUserId documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Returns the User ID string, which may have been set via: $v->setUserId('username@example.org'); </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUserId</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getUserIdHashed() <span class="modifier">public</span > <span class="modifier">static</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getUserIdHashed/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getUserIdHashed"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getUserIdHashed documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Hash function used internally by Piwik to hash a User ID into the Visitor ID. Note: matches implementation of Tracker\Request->getUserIdHashed() </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="modifier">static</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getUserIdHashed</a></span> ( <span class="param-type">string</span> <span class="param-name">id</span> ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="param-name"> id </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> getVisitorId() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/getVisitorId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::getVisitorId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::getVisitorId documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> If the user initiating the request has the Piwik first party cookie, this function will try and return the ID parsed from this first party cookie. If you call this function from a server, where the call is triggered by a cron or script not initiated by the actual visitor being tracked, then it will return the random Visitor ID that was assigned to this visit object. This can be used if you wish to record more visits, actions or goals for this visitor ID later on. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">getVisitorId</a></span> ( ) : <span class="return-type">string</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">string</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> loadVisitorIdCookie() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/loadVisitorIdCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::loadVisitorIdCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::loadVisitorIdCookie documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Loads values from the VisitorId Cookie </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">loadVisitorIdCookie</a></span> ( ) : <span class="return-type">bool</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">bool</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setAttributionInfo() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setAttributionInfo/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setAttributionInfo"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setAttributionInfo documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the attribution information to the visit, so that subsequent Goal conversions are properly attributed to the right Referrer URL, timestamp, Campaign Name & Keyword. If you call enableCookies() then these referral attribution values will be set to the 'ref' first party cookie storing referral information. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setAttributionInfo</a></span> ( <span class="param-type">Piwik.Tracker.AttributionInfo</span> <span class="param-name">attributionInfo</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> attributionInfo </td> <td class="param-type">Piwik.Tracker.AttributionInfo</td> <td>Attribution info for the visit</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setBrowserHasCookies() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setBrowserHasCookies/php-piwiktracker-setbrowserhascookies-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setBrowserHasCookies"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setBrowserHasCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setBrowserHasCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setBrowserHasCookies documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets if the browser supports cookies This is reported in "List of plugins" report in Piwik. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setBrowserHasCookies</a></span> ( <span class="param-type">bool</span> <span class="param-name">hasCookies</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> hasCookies </td> <td class="param-type">bool</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setBrowserLanguage() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setBrowserLanguage/php-piwiktracker-setbrowserlanguage-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setBrowserLanguage"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setBrowserLanguage/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setBrowserLanguage"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setBrowserLanguage documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the Browser language. Used to guess visitor countries when GeoIP is not enabled </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setBrowserLanguage</a></span> ( <span class="param-type">string</span> <span class="param-name">acceptLanguage</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> acceptLanguage </td> <td class="param-type">string</td> <td>For example "fr-fr"</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setCity() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCity/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCity"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCity documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the city of the visitor. If not used, Piwik may try to find the city using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCity</a></span> ( <span class="param-type">string</span> <span class="param-name">city</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> city </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setCookie() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCookie/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCookie"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCookie documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets a first party cookie to the client to improve dual JS-PHP tracking. This replicates the piwik.js tracker algorithms for consistency and better accuracy. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCookie</a></span> ( <span class="param-type">string</span> <span class="param-name">cookieName</span>, <span class="param-type">string</span> <span class="param-name">cookieValue</span>, <span class="param-type">long</span> <span class="param-name">cookieTTL</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> cookieName </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="param-name"> cookieValue </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="param-name"> cookieTTL </td> <td class="param-type">long</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setCountry() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCountry/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCountry"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCountry documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the country of the visitor. If not used, Piwik will try to find the country using either the visitor's IP address or language. Allowed only for Admin/Super User, must be used along with setTokenAuth(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCountry</a></span> ( <span class="param-type">string</span> <span class="param-name">country</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> country </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setCustomTrackingParameter() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCustomTrackingParameter/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCustomTrackingParameter"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCustomTrackingParameter documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets a custom tracking parameter <p></p> To track custom dimensions use 'dimension{#}' as the value for <span class="highlight">trackingApiParameter</span>, e.g. dimension1. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCustomTrackingParameter</a></span> ( <span class="param-type">string</span> <span class="param-name">trackingApiParameter</span>, <span class="param-type">string</span> <span class="param-name">value</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> trackingApiParameter </td> <td class="param-type">string</td> <td>The name of the custom tracking parameter. Use dimension{#} for custom dimensions, e.g. dimension1 for dimension 1.</td> </tr> <tr> <td class="param-name"> value </td> <td class="param-type">string</td> <td>The value of the custom parameter</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setCustomVariable() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setCustomVariable/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setCustomVariable"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setCustomVariable documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets Visit Custom Variable. See http://piwik.org/docs/custom-variables/ </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setCustomVariable</a></span> ( <span class="param-type">int</span> <span class="param-name">id</span>, <span class="param-type">string</span> <span class="param-name">name</span>, <span class="param-type">string</span> <span class="param-name">value</span>, <span class="param-type">Piwik.Tracker.CustomVar</span> <span class="param-name">scope</span> = CustomVar.Scopes.visit ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> id </td> <td class="param-type">int</td> <td>Custom variable slot ID from 1-5</td> </tr> <tr> <td class="param-name"> name </td> <td class="param-type">string</td> <td>Custom variable name</td> </tr> <tr> <td class="param-name"> value </td> <td class="param-type">string</td> <td>Custom variable value</td> </tr> <tr> <td class="param-name"> scope </td> <td class="param-type">Piwik.Tracker.CustomVar</td> <td>Custom variable scope. Possible values: visit, page, event</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setDebugStringAppend() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setDebugStringAppend/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setDebugStringAppend"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setDebugStringAppend documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Will append a custom string at the end of the Tracking request. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setDebugStringAppend</a></span> ( <span class="param-type">string</span> <span class="param-name">debugString</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> debugString </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setEcommerceView() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setEcommerceView/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setEcommerceView"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setEcommerceView documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the current page view as an item (product) page view, or an Ecommerce Category page view. This must be called before doTrackPageView() on this product/category page. It will set 3 custom variables of scope "page" with the SKU, Name and Category for this page view. Note: Custom Variables of scope "page" slots 3, 4 and 5 will be used. On a category page, you may set the parameter $category only and set the other parameters to false. Tracking Product/Category page views will allow Piwik to report on Product & Categories conversion rates (Conversion rate = Ecommerce orders containing this product or category / Visits to the product or category) </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setEcommerceView</a></span> ( <span class="param-type">string</span> <span class="param-name">sku</span> = "", <span class="param-type">string</span> <span class="param-name">name</span> = "", <span class="param-type">List<string></span> <span class="param-name">categories</span> = null, <span class="param-type">double</span> <span class="param-name">price</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> sku </td> <td class="param-type">string</td> <td>Product SKU being viewed</td> </tr> <tr> <td class="param-name"> name </td> <td class="param-type">string</td> <td>Product Name being viewed</td> </tr> <tr> <td class="param-name"> categories </td> <td class="param-type">List<string></td> <td>Category being viewed. On a Product page, this is the product's category. You can also specify an array of up to 5 categories for a given page view.</td> </tr> <tr> <td class="param-name"> price </td> <td class="param-type">double</td> <td>Specify the price at which the item was displayed</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setFirstPartyCookies() <span class="modifier">protected</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setFirstPartyCookies/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setFirstPartyCookies"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setFirstPartyCookies documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the first party cookies as would the piwik.js All cookies are supported: 'id' and 'ses' and 'ref' and 'cvar' cookies. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">protected</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setFirstPartyCookies</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setForceNewVisit() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setForceNewVisit/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setForceNewVisit"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setForceNewVisit documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Forces Piwik to create a new visit for the tracking request. By default, Piwik will create a new visit if the last request by this user was more than 30 minutes ago. If you call setForceNewVisit() before calling doTrack*, then a new visit will be created for this request. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setForceNewVisit</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setForceVisitDateTime() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setForceVisitDateTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setForceVisitDateTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setForceVisitDateTime documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Overrides server date and time for the tracking requests. By default Piwik will track requests for the "current datetime" but this function allows you to track visits in the past. All times are in UTC. Allowed only for Super User, must be used along with setTokenAuth() </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setForceVisitDateTime</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">dateTime</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> dateTime </td> <td class="param-type">DateTimeOffset</td> <td>Date to set</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setGenerationTime() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setGenerationTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setGenerationTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setGenerationTime documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the time that generating the document on the server side took. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setGenerationTime</a></span> ( <span class="param-type">int</span> <span class="param-name">timeMs</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> timeMs </td> <td class="param-type">int</td> <td>Generation time in ms</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setIdSite() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setIdSite/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setIdSite"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setIdSite documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the current site ID. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setIdSite</a></span> ( <span class="param-type">int</span> <span class="param-name">idSite</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> idSite </td> <td class="param-type">int</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setIp() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setIp/php-piwiktracker-setip-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setIp"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setIp/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setIp"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setIp documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Overrides IP address Allowed only for Super User, must be used along with setTokenAuth() </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setIp</a></span> ( <span class="param-type">string</span> <span class="param-name">ip</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> ip </td> <td class="param-type">string</td> <td>IP string, eg. 130.54.2.1</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setLatitude() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLatitude/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLatitude"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLatitude documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the latitude of the visitor. If not used, Piwik may try to find the visitor's latitude using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLatitude</a></span> ( <span class="param-type">float</span> <span class="param-name">lat</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> lat </td> <td class="param-type">float</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setLocalTime() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLocalTime/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLocalTime"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLocalTime documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets local visitor time </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLocalTime</a></span> ( <span class="param-type">DateTimeOffset</span> <span class="param-name">localTime</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> localTime </td> <td class="param-type">DateTimeOffset</td> <td>Time to set</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setLongitude() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setLongitude/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setLongitude"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setLongitude documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the longitude of the visitor. If not used, Piwik may try to find the visitor's longitude using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setLongitude</a></span> ( <span class="param-type">float</span> <span class="param-name">longitude</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> longitude </td> <td class="param-type">float</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setNewVisitorId() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setNewVisitorId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setNewVisitorId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setNewVisitorId documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the current visitor ID to a random new one. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setNewVisitorId</a></span> ( ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setPageCharset() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setPageCharset/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setPageCharset"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setPageCharset documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> By default, Piwik expects utf-8 encoded values, for example for the page URL parameter values, Page Title, etc. It is recommended to only send UTF-8 data to Piwik. If required though, you can also specify another charset using this function. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setPageCharset</a></span> ( <span class="param-type">string</span> <span class="param-name">charset</span> = "" ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> charset </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setPlugins() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setPlugins/php-piwiktracker-setplugins-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setPlugins"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setPlugins/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setPlugins"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setPlugins documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets visitor browser supported plugins </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setPlugins</a></span> ( <span class="param-type">Piwik.Tracker.BrowserPlugins</span> <span class="param-name">browserPlugins</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> browserPlugins </td> <td class="param-type">Piwik.Tracker.BrowserPlugins</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setProxy() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setProxy/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setProxy"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setProxy documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the proxy used for web-requests. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setProxy</a></span> ( <span class="param-type">IWebProxy</span> <span class="param-name">proxy</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> proxy </td> <td class="param-type">IWebProxy</td> <td>The proxy.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setRegion() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setRegion/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setRegion"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setRegion documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the region of the visitor. If not used, Piwik may try to find the region using the visitor's IP address (if configured to do so). Allowed only for Admin/Super User, must be used along with setTokenAuth(). </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setRegion</a></span> ( <span class="param-type">string</span> <span class="param-name">region</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> region </td> <td class="param-type">string</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setRequestTimeout() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setRequestTimeout/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setRequestTimeout"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setRequestTimeout documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the maximum number of seconds that the tracker will spend waiting for a response from Piwik. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setRequestTimeout</a></span> ( <span class="param-type">int</span> <span class="param-name">timeout</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> timeout </td> <td class="param-type">int</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setResolution() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setResolution/php-piwiktracker-setresolution-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setResolution"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setResolution/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setResolution"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setResolution documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets user resolution width and height. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setResolution</a></span> ( <span class="param-type">int</span> <span class="param-name">width</span>, <span class="param-type">int</span> <span class="param-name">height</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> width </td> <td class="param-type">int</td> <td></td> </tr> <tr> <td class="param-name"> height </td> <td class="param-type">int</td> <td></td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setTokenAuth() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setTokenAuth/php-piwiktracker-settokenauth-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setTokenAuth"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setTokenAuth/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setTokenAuth"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setTokenAuth documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Some Tracking API functionnality requires express authentication, using either the Super User token_auth, or a user with 'admin' access to the website. The following features require access: - force the visitor IP - force the date & time of the tracking requests rather than track for the current datetime </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setTokenAuth</a></span> ( <span class="param-type">string</span> <span class="param-name">token_auth</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> token_auth </td> <td class="param-type">string</td> <td>32 chars token_auth string</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setUrl() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUrl/php-piwiktracker-seturl-method-examples.html" rel="nofollow" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUrl"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUrl/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUrl"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUrl documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the current URL being tracked </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUrl</a></span> ( <span class="param-type">string</span> <span class="param-name">url</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> url </td> <td class="param-type">string</td> <td>Raw URL (not URL encoded)</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setUrlReferrer() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUrlReferrer/php-piwiktracker-seturlreferrer-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUrlReferrer"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUrlReferrer/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUrlReferrer"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUrlReferrer documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the URL referrer used to track Referrers details for new visits. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUrlReferrer</a></span> ( <span class="param-type">string</span> <span class="param-name">url</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> url </td> <td class="param-type">string</td> <td>Raw URL (not URL encoded)</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setUserAgent() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharp.hotexamples.com/examples/Piwik.Tracker/PiwikTracker/setUserAgent/php-piwiktracker-setuseragent-method-examples.html" title="Usage Examples of method Piwik.Tracker.PiwikTracker::setUserAgent"><i class='icon-borderless icon-thumbs-up'></i></a> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUserAgent/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUserAgent"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUserAgent documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Sets the user agent, used to detect OS and browser. If this function is not called, the User Agent will default to the current user agent if there is an active HttpContext </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUserAgent</a></span> ( <span class="param-type">string</span> <span class="param-name">userAgent</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> userAgent </td> <td class="param-type">string</td> <td>HTTP User Agent</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <div class="method-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3> setUserId() <span class="modifier">public</span > <span>method</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpsrc.hotexamples.com/method/Piwik.Tracker/PiwikTracker/setUserId/-" rel="nofollow" title="Source code of method Piwik.Tracker.PiwikTracker::setUserId"><i class='icon-borderless icon-eye'></i></a> <a rel="nofollow" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to the method Piwik.Tracker.PiwikTracker::setUserId documentation"><i class='icon-borderless icon-link'></i></a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Force the action to be recorded for a specific User. The User ID is a string representing a given user in your system. A User ID can be a username, UUID or an email address, or any number or string that uniquely identifies a user or client. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="method-name"><a class="method-link" href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#">setUserId</a></span> ( <span class="param-type">string</span> <span class="param-name">userId</span> ) : <span class="return-type">void</span> </td> </tr> <tr> <td class="param-name"> userId </td> <td class="param-type">string</td> <td>Any user ID string (eg. email address, ID, username). Must be non empty. Set to false to de-assign a user id previously set.</td> </tr> <tr> <td class="field-return">return</td> <td class="field-return-type">void</td> <td></td> </tr> </table> </div> </div> </div> <h2>Property Details</h2> <div class="property-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3 class="name">DEBUG_LAST_REQUESTED_URL <span>public static property</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to property Piwik.Tracker.PiwikTracker::DEBUG_LAST_REQUESTED_URL documentation"> <i class='icon-borderless icon-link'></i> </a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Used in tests to output useful error messages. </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <!-- <tr> <td colspan="3"></td> </tr> --> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="modifier">static</span > <span class="return-type">string</span> <span class="var-name">DEBUG_LAST_REQUESTED_URL</span> </td> </tr> <tr> <td>return</td> <td>string</td> <td></td> </tr> </table> </div> </div> </div> <div class="property-descr-full" id=""> <div class="row"> <div class="col-md-6"> <h3 class="name">URL <span>public static property</span> </h3> </div> <div class="col-md-6 actions"> <a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker#" title="Direct link to property Piwik.Tracker.PiwikTracker::URL documentation"> <i class='icon-borderless icon-link'></i> </a> </div> </div> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row doc-tags"> <div class="col-md-12"> <div class="tag-block tag-summary"> Piwik base URL, for example http://example.org/piwik/ Must be set before using the class by calling PiwikTracker.URL = 'http://yourwebsite.org/piwik/' </div> <div class="tag-block tag-remarks"> </div> <div class="tag-block tag-exception"> </div> <div class="tag-block tag-see"> </div> <div class="tag-block tag-link"> </div> <div class="tag-block tag-deprecated"> </div> <div class="tag-block tag-since"> </div> <div class="tag-block tag-author"> </div> </div> </div> <div class="row"> <div class="col-md-12" style="overflow: auto"> <table class="table table-striped"> <!-- <tr> <td colspan="3"></td> </tr> --> <tr> <td colspan="3" class="rendered"> <span class="modifier">public</span > <span class="modifier">static</span > <span class="return-type">string</span> <span class="var-name">URL</span> </td> </tr> <tr> <td>return</td> <td>string</td> <td></td> </tr> </table> </div> </div> </div> </div> </div> </div></div> <footer class="footer"> <div class="container"> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://csharp.hotexamples.com/site/trends?type=csharp%7Cc"> Top Classes </a> | <a href="https://csharpdoc.hotexamples.com/doc/map">Documentation</a> | <a href="/site/privacy">Privacy Policy</a> | <a href="https://cpp.hotexamples.com/direct-sales.html">Advertise with us</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/">PHP</a> | <a href="https://csharp.hotexamples.com/">C# (CSharp)</a> | <a href="https://java.hotexamples.com/">Java</a> | <a href="https://golang.hotexamples.com/">Golang</a> | <a href="https://cpp.hotexamples.com/">C++ (Cpp)</a> | <a href="https://python.hotexamples.com/">Python</a> | <a href="https://javascript.hotexamples.com/">JavaScript</a> | <a href="https://typescript.hotexamples.com/">TypeScript</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://csharpdoc.hotexamples.com/class/Piwik.Tracker/PiwikTracker">EN</a> | <a href="https://csharpdoc.hotexamples.com/ru/class/Piwik.Tracker/PiwikTracker">RU</a> | <a href="https://csharpdoc.hotexamples.com/de/class/Piwik.Tracker/PiwikTracker">DE</a> | <a href="https://csharpdoc.hotexamples.com/fr/class/Piwik.Tracker/PiwikTracker">FR</a> | <a href="https://csharpdoc.hotexamples.com/es/class/Piwik.Tracker/PiwikTracker">ES</a> | <a href="https://csharpdoc.hotexamples.com/pt/class/Piwik.Tracker/PiwikTracker">PT</a> | <a href="https://csharpdoc.hotexamples.com/it/class/Piwik.Tracker/PiwikTracker">IT</a> | <a href="https://csharpdoc.hotexamples.com/jp/class/Piwik.Tracker/PiwikTracker">JP</a> | <a href="https://csharpdoc.hotexamples.com/zh/class/Piwik.Tracker/PiwikTracker">ZH</a> | <a href="https://csharpdoc.hotexamples.com/ko/class/Piwik.Tracker/PiwikTracker">KO</a> </div> </div> <div class="row"> <div class="col-md-10 col-md-offset-1"> </div> <div class="col-md-1"> <!--LiveInternet counter--> <script type="text/javascript"><!-- document.write("<a href='//www.liveinternet.ru/click' " + "target=_blank><img src='//counter.yadro.ru/hit?t44.6;r" + escape(document.referrer) + ((typeof (screen) == "undefined") ? "" : ";s" + screen.width + "*" + screen.height + "*" + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) + ";u" + escape(document.URL) + ";" + Math.random() + "' alt='' title='LiveInternet' " + "border='0' width='31' height='31'><\/a>"); //--></script><!--/LiveInternet--> </div> </div> </div> </footer> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="/assets/30dd86a6f06b64184847037c52c63e07aa3c9a26.js"></script> <script>jQuery(function ($) { jQuery('#search-form').yiiActiveForm([{"id":"searchform-lang","name":"lang","container":".field-searchform-lang","input":"#searchform-lang","enableAjaxValidation":true},{"id":"searchform-search","name":"search","container":".field-searchform-search","input":"#searchform-search","enableAjaxValidation":true,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Search cannot be blank."});}}], []); });</script></body> </html>