@@ -44,7 +44,7 @@ import com.snowplowanalytics.refererparser.Parser;
44
44
...
45
45
46
46
String refererUrl = " http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari" ;
47
- String pageUrl = " http:/www.psychicbazaar.com/shop" ; // Our current URL
47
+ String pageUrl = " http:// www.psychicbazaar.com/shop" ; // Our current URL
48
48
49
49
Parser refererParser = new Parser ();
50
50
Referer r = refererParser. parse(refererUrl, pageUrl);
@@ -62,7 +62,7 @@ The Scala version of this library uses the updated API, and identifies search, s
62
62
63
63
``` scala
64
64
val refererUrl = " http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari"
65
- val pageUrl = " http:/www.psychicbazaar.com/shop" // Our current URL
65
+ val pageUrl = " http:// www.psychicbazaar.com/shop" // Our current URL
66
66
67
67
import com .snowplowanalytics .refererparser .scala .Parser
68
68
for (r <- Parser .parse(refererUrl, pageUrl)) {
@@ -196,7 +196,7 @@ using RefererParser;
196
196
.. .
197
197
198
198
string refererUrl = " http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari" ;
199
- string pageUrl = " http:/www.psychicbazaar.com/shop" ; // Our current URL
199
+ string pageUrl = " http:// www.psychicbazaar.com/shop" ; // Our current URL
200
200
201
201
var referer = Parser .Parse (new Uri (refererUrl ), pageUrl );
202
202
@@ -217,13 +217,13 @@ use Snowplow\RefererParser\Parser;
217
217
$parser = new Parser();
218
218
$referer = $parser->parse(
219
219
'http://www.google.com/search?q=gateway+oracle+cards+denise+linn&hl=en&client=safari',
220
- 'http:/www.psychicbazaar.com/shop'
220
+ 'http:// www.psychicbazaar.com/shop'
221
221
);
222
222
223
223
if ($referer->isKnown()) {
224
224
echo $referer->getMedium(); // "Search"
225
225
echo $referer->getSource(); // "Google"
226
- echo $referer->getTerm (); // "gateway oracle cards denise linn"
226
+ echo $referer->getSearchTerm (); // "gateway oracle cards denise linn"
227
227
}
228
228
```
229
229
0 commit comments