link
Required Field
This field is required and must not be omitted
Description
We need links to be able to re-direct users to your product page. In the link attribute you provide the URL for your product page.
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
Best Practices
Do
- Use stable url (for better user experience)
- Use URL to pre-selected product variants (if applicable)
- Use as few redirects as possible (for better user experience)
Don´t
- Don't add affiliate tracking in this field, we have a separate field
affiliate_link
for that
Example Values
Here are examples of how a valid link value should look like in XML and CSV (with header) respectively.
- XML
- CSV
Valid Value
<g:link>http://example.com/link</g:link>
Click to show more valid XML examples
<g:link>http://example.com/link</g:link>
<g:link>https://example.com/link</g:link>
<g:link>https://example.com/link(black)_(large)</g:link>
<g:link>https://example.com/link#foo</g:link>
<g:link><![CDATA[https://example.com/link?utm_source=1&utm_medium=2]]></g:link>
<g:link>http://example.com/link-%E2%84%A2-mu-20%C2%B5m</g:link>
Valid Value
link
http://example.com/link
Click to show more valid CSV examples
link
http://example.com/link
link
https://example.com/link
link
https://example.com/link(black)_(large)
link
https://example.com/link#foo
link
https://example.com/link?utm_source=1&utm_medium=2
link
http://example.com/link-%E2%84%A2-mu-20%C2%B5m
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:link>https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 2047 characters value)</g:link>
<g:link>http://bar</g:link>
<g:link>https://example.com/link##</g:link>
<g:link>http://example%.com/link</g:link>
<g:link>https://example.com/link[12-34]</g:link>
<g:link>http://example.com:foo/link</g:link>
<g:link>https://example.com/link?param=value^up-arrow</g:link>
<g:link>foo://example.com/link</g:link>
<g:link>ftp://example.com/link</g:link>
<g:link>ftps://example.com/link</g:link>
<g:link>sftp://example.com/link</g:link>
danger
validation_invalid_length
link
https://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (more than 2047 characters value)
danger
danger
danger
danger
danger
danger
danger
validation_url_scheme_not_allowed
link
foo://example.com/link
link
ftp://example.com/link
link
ftps://example.com/link
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