User Tools

Site Tools


Writing /home/user/smartcj.com/wiki/data/cache/e/e672eaa4f57c98b6888ecd91f1e22983.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/user/smartcj.com/wiki/data/cache/e/e672eaa4f57c98b6888ecd91f1e22983.metadata failed
tcms_rotation_parameter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tcms_rotation_parameter [2016/10/18 20:37] – created admintcms_rotation_parameter [2026/04/20 08:15] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ===== Pass Options ===== ===== Pass Options =====
  
-Default URLs like like http://domain/gallery/cool/index.html?12x34x567, where 12x34x567 is so called rotation parameter ie that's a way for the script to understand where a click happens (you can think of it as google's tracking parameters)+In the standard setup, URLs look like http://domain/gallery/cool/index.html?12x34x567, where the numbers at the end are the Rotation Parameter. It is used to track thumb-click statistics and calculate [[Cell K]].
  
-You have 3 options to work with it.+In Thumb CMS there are several ways to work with this:
  
-**1. You can use old style link like ** http://domain/gallery/cool/index.html?12x34x567 and that's a 100% guarantee that the rotation parameter will be passed to the script+**1. You can use the old variant** http://domain/gallery/cool/index.html?12x34x567 and it will work the same way. In this case you get 100% transfer of the rotation parameter.
  
-**2. Pass it via AJAX call **  +**2. Passing via AJAX** 
-The parameter will be passed only if you have JS onWhich is good in some way.+In this case, the rotation parameter will be passed only if the user has JS enabledClicks from users without JS will not be counted, which may be good.
  
-Base template+How to set it up: 
 + 
 +The base template should look something like this:
 <code> <code>
  
Line 46: Line 48:
 </code> </code>
  
-**3. No rotation parameter at all** - that's a new one.+**3. Without rotation parameter**
  
-Rotation - Settings **Use Magic Rotation Parameter** +In this Rotation - Settings there is a parameter **Use Magic Rotation Parameter**. In this case the script tries to guess where the click was made.
  
-SmartCJ will try to guess where each click has been clicked and the script does it extremely good. Give it a try.+In this case you don't need to add the rotation parameter at all.
  
  
 ===== Link options ===== ===== Link options =====
  
-So let'see what link options we have for "magic rotation":+These are the available link options: 
 + 
 +  - http://domain/gallery/cool/index.html - or any other rewrite. Through the rewrite, $_GET['slug'] = cool is passed to the script as the gallery slug, so the script knows which gallery should receive credit for the click. Backward compatibility with http://domain/gallery/cool/index.html?12x34x567 is also preserved. 
 +  - cgi/out.php?url=http://domain/gallery/cool/index.html - the same as the previous option - just redirect to http://domain/gallery/cool/index.html, where again there is a slug and it'clear to the script which gallery to credit the click to. 
 +  - cgi/out.php?url=/gallery/cool/index.html - this works the same way as option 2 
 +  - cgi/out.php?url=http://domain/gallery/cool/index.html&link=12x34x567 - there is a rotation parameter 
 +  - cgi/out.php?url=http://another_domain/somegallery/at/sponsor/host/index.html - if that exact URL exists in the database because it was used when the gallery was added, no rotation parameter is needed. The script can find the gallery by URL and record the click. You can still add the rotation parameter here for backward compatibility. 
 +  - cgi/out.php?url=http://master/gallery/cool/index.html&link=12x34x567 - use this when, for example, a slave sends traffic to galleries on the master. In this case the database contains the specific URL http://master/gallery/cool/index.html as a real URL, not as a rewrite. The script on the slave does not receive a slug, so rewrite parsing only happens on the master. In this setup the rotation parameter is mandatory. 
 +  - And for completeness cgi/out.php?url=http://some_url/index.html - a link to any URL via out. No rotation parameter, the click in the rotation won't be credited to anyone, the click in the trade will be credited always. 
 + 
 + 
 +So the general rule: in rotation a click can be credited if at least one of the conditions is met 
 +  - if the script receives &slug=... and it's clear which gallery this is 
 +  - if &url=... is received and this URL is in the database with 100% match 
 +  - if there is a rotation parameter 
 +  - if there is &group_name or &group_id 
 + 
 + 
 +**Note on options 2 and 3** 
 + 
 +If a user clicks out.php?url=/blabla/something/other/, the script can determine which gallery is behind that URL only if the user is actually redirected to the gallery. In that case the rewrite runs and the script receives the gallery slug. If you send the user to a trader instead, the rewrite never runs, so the script does not know which gallery this is and cannot count CTR.
  
-  - http://domain/gallery/cool/index.html - or any other rewrite. The main idea is to pass $_GET['slug'] = cool - so the script can guess the thumb by gallery's slug +So for these links, thumb clicks are counted only when the user actually reaches the gallery. If skimming is 50CTR will be roughly cut in half; if skimming is 0, thumb clicks will not be counted at all.
-  - cgi/out.php?url=http://domain/gallery/cool/index.html - pretty much the same as prev one we have a gallery slug +
-  - cgi/out.php?url=/gallery/cool/index.html - the same as option 2 +
-  - cgi/out.php?url=http://domain/gallery/cool/index.html&link=12x34x567 and cgi/out.php?url=/gallery/cool/index.html&link=12x34x567 also the same as 2 +
-  - cgi/out.php?url=http://another_domain/somegallery/at/sponsor/host/index.html - if we have this url http://another_domain/somegallery/at/sponsor/host/index.html in our DB - script can detect the thumb, otherwise you need to use an old-style rotation parameter +
-  - cgi/out.php?url=http://master/gallery/cool/index.html&link=12x34x567 - we want to send to galleries at a master site and we don't have this  http://master/gallery/cool/index.html URL in DB - in this case we have to use old style rotation parameter+
  
-The rule of the thumb a click can be counted if  +**What to do:**
-  - the script gets &slug=-.. +
-  - the script gets &url=... and this url exists in DB +
-  - if you use old-slyle rotation parameter +
-  - you have &group_name or &group_id for category thumbs+
  
 +  * you can add &slug= to the URL so the script immediately sees which gallery this is, conditionally out.php?url=/blabla/something/other/&slug=something
 +  * you can try to parse the URL itself in .htaccess and add &slug= there already
  
tcms_rotation_parameter.1476823077.txt.gz · Last modified: (external edit)