Skip to main content

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

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.

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>

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.

<g:affiliate_link>https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (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>

Properties

PropertyValueDescription
Data TypeUrlClosest data type in code
NestedFalseDefines if this field consists of one or more sub-fields
Case SensitiveTrueIf small or large letters matter for this field
RepeatableFalseIf you can supply multiple items of this field (it´s a list)
Repeatable limit0If a list, this specifices the max number of items

Changelog

📅 2022-12-07

Added

Initial definition