affiliate_link
Optional Field
This field is optional, but omitting it may leave out functionality on Prisjakt for your offers
Description
Add this attribute if you're using affiliate platform tracking.
Effects When Used
- Affiliate tracking is enabled
Related Fields
Validation Rules
- Must be valid RFC 3986 uri
- Must have a protocol (eg.
https
) - Must have a path (eg.
.../my-product
) - Must be shorter than
2047
characters - Unicode characters must be url encoded
Example Values
Here are examples of how a valid affiliate_link value should look like in XML and CSV (with header) respectively.
- XML
- CSV
Valid Value
<g:affiliate_link>http://example.com/link</g:affiliate_link>
Click to show more valid XML examples
<g:affiliate_link>http://example.com/link</g:affiliate_link>
<g:affiliate_link>https://example.com/link</g:affiliate_link>
<g:affiliate_link>https://example.com/link(black)_(large)</g:affiliate_link>
<g:affiliate_link>https://example.com/link#foo</g:affiliate_link>
<g:affiliate_link><![CDATA[https://example.com/link?utm_source=1&utm_medium=2]]></g:affiliate_link>
<g:affiliate_link>http://example.com/link-%E2%84%A2-mu-20%C2%B5m</g:affiliate_link>
<g:affiliate_link></g:affiliate_link>
Valid Value
affiliate_link
http://example.com/link
Click to show more valid CSV examples
affiliate_link
http://example.com/link
affiliate_link
https://example.com/link
affiliate_link
https://example.com/link(black)_(large)
affiliate_link
https://example.com/link#foo
affiliate_link
https://example.com/link?utm_source=1&utm_medium=2
affiliate_link
http://example.com/link-%E2%84%A2-mu-20%C2%B5m
affiliate_link
""
Error Codes
Below you will find possible error codes generated when validating this field alongside with an example in XML and CSV that would trigger the code. Please refer to the validation rules to understand the cause.
- XML
- CSV
<g:affiliate_link>https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 2047 characters value)</g:affiliate_link>
<g:affiliate_link>http://bar</g:affiliate_link>
<g:affiliate_link>https://example.com/link##</g:affiliate_link>
<g:affiliate_link>http://example%.com/link</g:affiliate_link>
<g:affiliate_link>https://example.com/link[12-34]</g:affiliate_link>
<g:affiliate_link>http://example.com:foo/link</g:affiliate_link>
<g:affiliate_link>https://example.com/link?param=value^up-arrow</g:affiliate_link>
<g:affiliate_link>foo://example.com/link</g:affiliate_link>
<g:affiliate_link>ftp://example.com/link</g:affiliate_link>
<g:affiliate_link>ftps://example.com/link</g:affiliate_link>
<g:affiliate_link>sftp://example.com/link</g:affiliate_link>
danger
validation_invalid_length
affiliate_link
https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 2047 characters value)
danger
danger
danger
danger
danger
danger
danger
validation_url_scheme_not_allowed
affiliate_link
foo://example.com/link
affiliate_link
ftp://example.com/link
affiliate_link
ftps://example.com/link
affiliate_link
sftp://example.com/link
Properties
Property | Value | Description |
---|---|---|
Data Type | Url | Closest data type in code |
Nested | False | Defines if this field consists of one or more sub-fields |
Case Sensitive | True | If small or large letters matter for this field |
Repeatable | False | If you can supply multiple items of this field (it´s a list) |
Repeatable limit | 0 | If a list, this specifices the max number of items |
Changelog
📅 2022-12-07
Added
Initial definition