Skip to content

Commit ef10316

Browse files
tiborbbenjben
authored andcommitted
Fix malformed URLs in the README (closes #120)
1 parent 2a8e919 commit ef10316

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import com.snowplowanalytics.refererparser.Parser;
4444
...
4545

4646
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
4848

4949
Parser refererParser = new Parser();
5050
Referer r = refererParser.parse(refererUrl, pageUrl);
@@ -62,7 +62,7 @@ The Scala version of this library uses the updated API, and identifies search, s
6262

6363
```scala
6464
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
6666

6767
import com.snowplowanalytics.refererparser.scala.Parser
6868
for (r <- Parser.parse(refererUrl, pageUrl)) {
@@ -196,7 +196,7 @@ using RefererParser;
196196
...
197197

198198
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
200200
201201
var referer = Parser.Parse(new Uri(refererUrl), pageUrl);
202202

@@ -217,13 +217,13 @@ use Snowplow\RefererParser\Parser;
217217
$parser = new Parser();
218218
$referer = $parser->parse(
219219
'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'
221221
);
222222

223223
if ($referer->isKnown()) {
224224
echo $referer->getMedium(); // "Search"
225225
echo $referer->getSource(); // "Google"
226-
echo $referer->getTerm(); // "gateway oracle cards denise linn"
226+
echo $referer->getSearchTerm(); // "gateway oracle cards denise linn"
227227
}
228228
```
229229

0 commit comments

Comments
 (0)